Overrides AbstractController::Base#action_methods to remove any methods that are listed as hidden methods.
# File lib/action_controller/metal/hide_actions.rb, line 42 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 - A list of actions
# File lib/action_controller/metal/hide_actions.rb, line 26 def hide_action(*args) self.hidden_actions = hidden_actions.dup.merge(args.map(&:to_s)).freeze end
Generated with the Darkfish Rdoc Generator 2.