Permalink
Browse files

Merge pull request #1313 from joshk/deprecation_message_correction

Deprecation message correction
  • Loading branch information...
2 parents 9701014 + a1936b4 commit 3868624c79d2647b7bd07dd61c17420a7dc35927 @josevalim josevalim committed May 25, 2011
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 3868624

Please sign in to comment.