Skip to content

Commit 417b84a

Browse files
authored
Fix Dirty#*_was documentation
The docs illustrated `*_change`, not `*_was`, leaving the reader to have to guess.
1 parent 9c6fe5b commit 417b84a

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)