Class: ActiveAdmin::Views::ActionItems

Inherits:
Component
  • Object
show all
Defined in:
lib/active_admin/views/action_items.rb

Instance Method Summary collapse

Instance Method Details

#build(action_items) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/active_admin/views/action_items.rb', line 7

def build(action_items)
  action_items.each do |action_item|
    span class: action_item.html_class do
      instance_exec(&action_item.block)
    end
  end
end