Skip to content

Commit 770b353

Browse files
authored
Merge pull request rails#52195 from jaynetics/fix-ar-dirty-doc
Fix ActiveRecord dirty docs
2 parents 5bec50b + 03a1af9 commit 770b353

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)