diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index d68faaf2f2bf002bf1463bb396bfaede22a88776..efdc677b3ae100c86a69f464b01c6d759473fb44 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -295,7 +295,7 @@ def hidden_actions end # Hide each of the given methods from being callable as actions. - def hide_actions(*names) + def hide_action(*names) write_inheritable_attribute(:hidden_actions, hidden_actions | names.collect {|n| n.to_s}) end