From 85a40f6fdaabbec0402e402c54861f8545b0fa8d Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Tue, 10 May 2011 01:52:27 -0700 Subject: [PATCH] :touch => :symbol also updates the updated_at attribute --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def has_one(name, options = {}) # [: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 has_one or has_many association on the associated # object that is the inverse of this belongs_to association. Does not work in -- GitLab