Skip to content

Commit

Permalink
correction to the AR::Base#attributes= guard_protected_attributes dep…
Browse files Browse the repository at this point in the history
…recation message
  • Loading branch information
joshk committed May 25, 2011
1 parent 9701014 commit a1936b4
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 # user.is_admin? # => false
def attributes=(new_attributes, guard_protected_attributes = nil) def attributes=(new_attributes, guard_protected_attributes = nil)
unless 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" "if you want to bypass mass-assignment security then look into using assign_attributes"
ActiveSupport::Deprecation.warn(message) ActiveSupport::Deprecation.warn(message)
end end
Expand Down

0 comments on commit a1936b4

Please sign in to comment.