lib/action_controller/metal/hide_actions.rb in actionpack-3.0.20 vs lib/action_controller/metal/hide_actions.rb in actionpack-3.1.0.beta1

- old
+ new

@@ -1,10 +1,9 @@ require 'active_support/core_ext/class/attribute' module ActionController - # ActionController::HideActions adds the ability to prevent public methods on a controller - # to be called as actions. + # Adds the ability to prevent public methods on a controller to be called as actions. module HideActions extend ActiveSupport::Concern included do class_attribute :hidden_actions @@ -21,10 +20,10 @@ module ClassMethods # Sets all of the actions passed in as hidden actions. # # ==== Parameters - # *args<#to_s>:: A list of actions + # * <tt>args</tt> - A list of actions def hide_action(*args) self.hidden_actions = hidden_actions.dup.merge(args.map(&:to_s)).freeze end def inherited(klass)