module ActionController::HideActions::ClassMethods
def action_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)
==== 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