module ActionController::HideActions::ClassMethods

def action_methods

that are listed as hidden methods.
Overrides AbstractController::Base#action_methods to remove any methods
def action_methods
  @action_methods ||= Set.new(super.reject { |name| hidden_actions.include?(name) }).freeze
end

def hide_action(*args)

* args - A list of actions
==== Parameters

Sets all of the actions passed in as hidden actions.
def hide_action(*args)
  self.hidden_actions = hidden_actions.dup.merge(args.map(&:to_s)).freeze
end

def visible_action?(action_name)

def visible_action?(action_name)
  not hidden_actions.include?(action_name)
end