Skip to content

Commit a5d243f

Browse files
Merge pull request rails#50143 from danbernier/fix-dirty-was-docs
Fix ActiveModel::Dirty#*_was documentation [ci skip]
2 parents 9c6fe5b + 417b84a commit a5d243f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/lib/active_model/dirty.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ module Dirty
187187
#
188188
# person = Person.new(name: 'Steph')
189189
# person.name = 'Stephanie'
190-
# person.name_change # => ['Steph', 'Stephanie']
190+
# person.name_was # => 'Steph'
191191

192192
##
193193
# :method: *_previous_change

0 commit comments

Comments
 (0)