Merge pull request #52195 from jaynetics/fix-ar-dirty-doc

Fix ActiveRecord dirty docs
This commit is contained in:
fatkodima 2024-06-23 22:20:08 +03:00 committed by GitHub
commit 770b353896
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -31,7 +31,7 @@ module AttributeMethods
# person.name_in_database # => "Alice"
# person.saved_change_to_name? # => true
# person.saved_change_to_name # => ["Allison", "Alice"]
# person.name_before_last_change # => "Allison"
# person.name_before_last_save # => "Allison"
#
# Similar to ActiveModel::Dirty, methods can be invoked as
# +saved_change_to_name?+ or by passing an argument to the generic method