Skip to content

Commit

Permalink
Merge pull request rails#1313 from joshk/deprecation_message_correction
Browse files Browse the repository at this point in the history
Deprecation message correction
  • Loading branch information
josevalim committed May 25, 2011
2 parents 9701014 + a1936b4 commit 3868624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3868624

Please sign in to comment.