instance method
action_method?
Ruby on Rails 3.0.20
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. This can be overridden in subclasses to modify the semantics of what can be considered an action.
Parameters
-
name- The name of an action to be tested
Returns
-
TrueClass,FalseClass
Parameters
-
namereq
Source
# File actionpack/lib/abstract_controller/base.rb, line 142
def action_method?(name)
self.class.action_methods.include?(name)
end
Defined in actionpack/lib/abstract_controller/base.rb line 142
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Base