Class: ActiveAdmin::ControllerAction
- Inherits:
-
Object
- Object
- ActiveAdmin::ControllerAction
- Defined in:
- lib/active_admin/controller_action.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #http_verb ⇒ Object
-
#initialize(name, options = {}) ⇒ ControllerAction
constructor
A new instance of ControllerAction.
Constructor Details
#initialize(name, options = {}) ⇒ ControllerAction
Returns a new instance of ControllerAction.
4 5 6 |
# File 'lib/active_admin/controller_action.rb', line 4 def initialize(name, = {}) @name, @options = name, end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/active_admin/controller_action.rb', line 3 def name @name end |
Instance Method Details
#http_verb ⇒ Object
8 9 10 |
# File 'lib/active_admin/controller_action.rb', line 8 def http_verb @options[:method] ||= :get end |