instance method
method_for_action
Ruby on Rails 4.1.16
Since v3.0.20 Last seen in v4.2.9 PrivateSignature
method_for_action(action_name)
Overrides AbstractController::Base#action_method? to return false if the action name is in the list of hidden actions.
Parameters
-
action_namereq
Source
# File actionpack/lib/action_controller/metal/hide_actions.rb, line 16
def method_for_action(action_name)
self.class.visible_action?(action_name) && super
end
Defined in actionpack/lib/action_controller/metal/hide_actions.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HideActions