Class: ActiveAdmin::ActionItems::ActionItem

Inherits:
Object
  • Object
show all
Includes:
OptionalDisplay
Defined in:
lib/active_admin/action_items.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from OptionalDisplay

#display_on?

Constructor Details

#initialize(options = {}, &block) ⇒ ActionItem

Returns a new instance of ActionItem.



31
32
33
34
# File 'lib/active_admin/action_items.rb', line 31

def initialize(options = {}, &block)
  @options, @block = options, block
  normalize_display_options!
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



29
30
31
# File 'lib/active_admin/action_items.rb', line 29

def block
  @block
end