instance method
action_method?
Ruby on Rails 4.0.13
Since v3.0.20 Private — implementation detail, not part of the public APISignature
action_method?(name)
Returns true if the name can be considered an action because it has a method defined in the controller.
Parameters
-
name- The name of an action to be tested
Returns
-
TrueClass,FalseClass
:api: private
Parameters
-
namereq
Source
# File actionpack/lib/abstract_controller/base.rb, line 178
def action_method?(name)
self.class.action_methods.include?(name)
end
Defined in actionpack/lib/abstract_controller/base.rb line 178
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Base