From 356eed9c6034064c097cf607588185b1c526d93b Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Thu, 20 Sep 2012 12:14:53 -0500 Subject: add :nodoc: to AMo::DeprecatedMassAssignmentSecurity::ClassMethods [ci skip] --- activemodel/lib/active_model/deprecated_mass_assignment_security.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activemodel/lib/active_model') diff --git a/activemodel/lib/active_model/deprecated_mass_assignment_security.rb b/activemodel/lib/active_model/deprecated_mass_assignment_security.rb index c25cd9367d..2ea69991fc 100644 --- a/activemodel/lib/active_model/deprecated_mass_assignment_security.rb +++ b/activemodel/lib/active_model/deprecated_mass_assignment_security.rb @@ -2,14 +2,14 @@ module ActiveModel module DeprecatedMassAssignmentSecurity # :nodoc: extend ActiveSupport::Concern - module ClassMethods - def attr_protected(*args) # :nodoc: + module ClassMethods # :nodoc: + def attr_protected(*args) raise "`attr_protected` is extracted out of Rails into a gem. " \ "Please use new recommended protection model for params " \ "or add `protected_attributes` to your Gemfile to use old one." end - def attr_accessible(*args) # :nodoc: + def attr_accessible(*args) raise "`attr_accessible` is extracted out of Rails into a gem. " \ "Please use new recommended protection model for params " \ "or add `protected_attributes` to your Gemfile to use old one." -- cgit v1.2.3