mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
add brackets around attribute_name
since 'attr_name_will_change!' is not an actual method it should be clearer that you have to insert the attribute name as in line 104 [ci skip]
This commit is contained in:
parent
6f4fd2c632
commit
a4b02be067
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module ActiveModel
|
|||
# * <tt>include ActiveModel::Dirty</tt> in your object.
|
||||
# * Call <tt>define_attribute_methods</tt> passing each method you want to
|
||||
# track.
|
||||
# * Call <tt>attr_name_will_change!</tt> before each change to the tracked
|
||||
# * Call <tt>[attr_name]_will_change!</tt> before each change to the tracked
|
||||
# attribute.
|
||||
# * Call <tt>changes_applied</tt> after the changes are persisted.
|
||||
# * Call <tt>clear_changes_information</tt> when you want to reset the changes
|
||||
|
|
Loading…
Reference in a new issue