Overrides AbstractController::Base#action_methods to remove any methods that are listed as hidden methods.
# File lib/action_controller/metal/hide_actions.rb, line 43 def action_methods @action_methods ||= Set.new(super.reject { |name| hidden_actions.include?(name) }) end
Sets all of the actions passed in as hidden actions.
*args<to_s> |
A list of actions |
# File lib/action_controller/metal/hide_actions.rb, line 27 def hide_action(*args) self.hidden_actions = hidden_actions.dup.merge(args.map(&:to_s)).freeze end
Generated with the Darkfish Rdoc Generator 2.