module ActionController::HideActions
Adds the ability to prevent public methods on a controller to be called as actions.
Private Instance Methods
method_for_action(action_name)
click to toggle source
Overrides AbstractController::Base#action_method? to return false if the action name is in the list of hidden actions.
Calls superclass method
# File lib/action_controller/metal/hide_actions.rb, line 16 def method_for_action(action_name) self.class.visible_action?(action_name) && super end