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

- (ControllerAction) initialize(name, options = {})

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

- (Object) name (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

- (Object) http_verb



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

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