aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorBruno Michel <brmichel@free.fr>2011-05-10 01:52:27 -0700
committerBruno Michel <brmichel@free.fr>2011-05-10 01:52:27 -0700
commit85a40f6fdaabbec0402e402c54861f8545b0fa8d (patch)
tree78545b0b48e287f9e58e94c08b3aebc3dba05b34 /activerecord/lib
parentbb1af05247e499e4080ccd1ab0d3a0615f7601b7 (diff)
downloadrails-85a40f6fdaabbec0402e402c54861f8545b0fa8d.tar.gz
rails-85a40f6fdaabbec0402e402c54861f8545b0fa8d.tar.bz2
rails-85a40f6fdaabbec0402e402c54861f8545b0fa8d.zip
:touch => :symbol also updates the updated_at attribute
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 08fb6bf3c4..9bc44e5163 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1379,7 +1379,7 @@ module ActiveRecord
# [:touch]
# If true, the associated object will be touched (the updated_at/on attributes set to now)
# when this record is either saved or destroyed. If you specify a symbol, that attribute
- # will be updated with the current time instead of the updated_at/on attribute.
+ # will be updated with the current time in addition to the updated_at/on attribute.
# [:inverse_of]
# Specifies the name of the <tt>has_one</tt> or <tt>has_many</tt> association on the associated
# object that is the inverse of this <tt>belongs_to</tt> association. Does not work in