Skip to content
Browse files

add :nodoc: to AMo::DeprecatedMassAssignmentSecurity::ClassMethods [c…

…i skip]
  • Loading branch information...
1 parent 6783c3f commit 356eed9c6034064c097cf607588185b1c526d93b Francesco Rodriguez committed Sep 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/deprecated_mass_assignment_security.rb
View
6 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."

0 comments on commit 356eed9

Please sign in to comment.
Something went wrong with that request. Please try again.