aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/person.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb
index f57d8bdbdf..ea215eeb81 100644
--- a/activerecord/test/models/person.rb
+++ b/activerecord/test/models/person.rb
@@ -116,7 +116,7 @@ class NestedPerson < ActiveRecord::Base
end
def best_friend_first_name=(new_name)
- assign_attributes({ best_friend_attributes: { first_name: new_name } })
+ assign_attributes(best_friend_attributes: { first_name: new_name })
end
end