Skip to content

Commit

Permalink
:touch => :symbol also updates the updated_at attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed May 10, 2011
1 parent bb1af05 commit 85a40f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/associations.rb
Expand Up @@ -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
Expand Down

0 comments on commit 85a40f6

Please sign in to comment.