Permalink
Browse files

correction to the AR::Base#attributes= guard_protected_attributes dep…

…recation message
  • Loading branch information...
joshk committed May 25, 2011
1 parent 9701014 commit a1936b4a6b9b4f1f4a02704b1b913a33ff0c7840
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
@@ -1675,7 +1675,7 @@ def attribute_names
# user.is_admin? # => false
def attributes=(new_attributes, guard_protected_attributes = nil)
unless guard_protected_attributes.nil?
- message = "the use of 'guard_protected_attributes' will be removed from the next major release of rails, " +
+ message = "the use of 'guard_protected_attributes' will be removed from the next minor release of rails, " +
"if you want to bypass mass-assignment security then look into using assign_attributes"
ActiveSupport::Deprecation.warn(message)
end

0 comments on commit a1936b4

Please sign in to comment.