Class: ActiveAdmin::ControllerAction

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/controller_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ ControllerAction

Returns a new instance of ControllerAction.


5
6
7
8
# File 'lib/active_admin/controller_action.rb', line 5

def initialize(name, options = {})
  @name = name
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.


4
5
6
# File 'lib/active_admin/controller_action.rb', line 4

def name
  @name
end

Instance Method Details

#http_verbObject


10
11
12
# File 'lib/active_admin/controller_action.rb', line 10

def http_verb
  @options[:method] ||= :get
end