Browse files

:touch => :symbol also updates the updated_at attribute

  • Loading branch information...
1 parent bb1af05 commit 85a40f6fdaabbec0402e402c54861f8545b0fa8d @nono nono committed May 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
2 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 <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

0 comments on commit 85a40f6

Please sign in to comment.