Method: ActionController::Base.hide_action
- Defined in:
- lib/action_controller/base.rb
.hide_action(*names) ⇒ Object
Hide each of the given methods from being callable as actions.
417 418 419 |
# File '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 |