# File lib/active_record/base.rb, line 2772 def attributes=(new_attributes, guard_protected_attributes = true) return if new_attributes.nil? attributes = new_attributes.dup attributes.stringify_keys! attributes = remove_attributes_protected_from_mass_assignment(attributes) if guard_protected_attributes assign_attributes(attributes) if attributes and attributes.any? end