Skip to content

Commit

Permalink
Merge pull request #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 and zzak committed Jun 24, 2024
1 parent 0b89a33 commit 9e370f0
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 9e370f0

Please sign in to comment.