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

- (Object) build(action_items)



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

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