Skip to content

Commit

Permalink
Merge pull request rails#52195 from jaynetics/fix-ar-dirty-doc
Browse files Browse the repository at this point in the history
Fix ActiveRecord dirty docs
  • Loading branch information
fatkodima authored Jun 23, 2024
2 parents 5bec50b + 03a1af9 commit 770b353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/attribute_methods/dirty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 770b353

Please sign in to comment.