Touching the root document

7 views
Skip to first unread message

Nicholas Wieland

unread,
Feb 20, 2011, 11:01:47 AM2/20/11
to mon...@googlegroups.com
Hi *,
I have an object foo that references_many bars, I would like to have my foo.updated_at updated when I add an element to bars.
Do I have to do it manually or there's something like the :touch option of AR ?

TIA,
  ngw

-- 
[ 926381, 23200231779, 1299022, 1045307475 ].collect { |a| a.to_s( 36 ) }.join( " " )
Nicholas Wieland (ngw)

Durran Jordan

unread,
Feb 20, 2011, 12:11:05 PM2/20/11
to mon...@googlegroups.com
You'll have to do it manually for now.

2011/2/20 Nicholas Wieland <n...@nofeed.org>
Reply all
Reply to author
Forward
0 new messages