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.



82
83
84
85
# File 'lib/active_admin/resource/action_items.rb', line 82

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

Instance Attribute Details

#blockObject

Returns the value of attribute block.



80
81
82
# File 'lib/active_admin/resource/action_items.rb', line 80

def block
  @block
end