aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
author_tiii <_@tiii.de>2014-12-08 17:39:29 +0100
committer_tiii <_@tiii.de>2014-12-08 17:39:29 +0100
commita4b02be06761fd590b5eb67f162023a6f8e2cd4d (patch)
tree9743ae5c085edc5e241e1332f4c42ba8ba2d13f3 /activemodel
parent6f4fd2c6322342a4189a2a5ebb50a7650c07ae88 (diff)
downloadrails-a4b02be06761fd590b5eb67f162023a6f8e2cd4d.tar.gz
rails-a4b02be06761fd590b5eb67f162023a6f8e2cd4d.tar.bz2
rails-a4b02be06761fd590b5eb67f162023a6f8e2cd4d.zip
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]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/dirty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb
index 4e389c8692..60af31cca7 100644
--- a/activemodel/lib/active_model/dirty.rb
+++ b/activemodel/lib/active_model/dirty.rb
@@ -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