aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-20 12:14:53 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-20 12:18:59 -0500
commit356eed9c6034064c097cf607588185b1c526d93b (patch)
tree6c03189620497606d63cb95853b8daf1d5cc271c /activemodel
parent6783c3f449f9c80268905fe79e444f40d1b2f883 (diff)
downloadrails-356eed9c6034064c097cf607588185b1c526d93b.tar.gz
rails-356eed9c6034064c097cf607588185b1c526d93b.tar.bz2
rails-356eed9c6034064c097cf607588185b1c526d93b.zip
add :nodoc: to AMo::DeprecatedMassAssignmentSecurity::ClassMethods [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/deprecated_mass_assignment_security.rb6
1 files changed, 3 insertions, 3 deletions
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."