class method
self.hide_action
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.hide_action(*names)
Hide each of the given methods from being callable as actions.
Parameters
-
namesrest
Source
# File actionpack/lib/action_controller/base.rb, line 417
def hide_action(*names)
write_inheritable_attribute(:hidden_actions, hidden_actions | names.map { |name| name.to_s })
end
Defined in actionpack/lib/action_controller/base.rb line 417
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Base