Skip to content

Commit 03a1af9

Browse files
authored
Fix ActiveRecord dirty docs
1 parent 5bec50b commit 03a1af9

File tree

1 file changed

+1
-1
lines changed
  • activerecord/lib/active_record/attribute_methods

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/attribute_methods/dirty.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module AttributeMethods
3131
# person.name_in_database # => "Alice"
3232
# person.saved_change_to_name? # => true
3333
# person.saved_change_to_name # => ["Allison", "Alice"]
34-
# person.name_before_last_change # => "Allison"
34+
# person.name_before_last_save # => "Allison"
3535
#
3636
# Similar to ActiveModel::Dirty, methods can be invoked as
3737
# +saved_change_to_name?+ or by passing an argument to the generic method

0 commit comments

Comments
 (0)