Skip to content

Commit

Permalink
Point user to strong_parameters as the new protection model [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
saulius committed Nov 18, 2012
1 parent aff1872 commit 61edea0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ module DeprecatedMassAssignmentSecurity # :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."
"Please use new recommended protection model for params" \
"(strong_parameters) or add `protected_attributes` to your " \
"Gemfile to use old one."
end

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."
"Please use new recommended protection model for params" \
"(strong_parameters) or add `protected_attributes` to your " \
"Gemfile to use old one."
end
end
end
Expand Down

0 comments on commit 61edea0

Please sign in to comment.