Class: ActiveAdmin::ActionItem

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

Overview

Model class to store the data for ActionItems

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.



87
88
89
90
# File 'lib/active_admin/resource/action_items.rb', line 87

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

Instance Attribute Details

#blockObject

Returns the value of attribute block.



85
86
87
# File 'lib/active_admin/resource/action_items.rb', line 85

def block
  @block
end