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.



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

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

Instance Attribute Details

#nameObject (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_verbObject



8
9
10
# File 'lib/active_admin/controller_action.rb', line 8

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