Get a list of updated fields in Model.update?

2 views
Skip to first unread message

Dan

unread,
Aug 17, 2007, 2:48:31 AM8/17/07
to Ruby on Rails: Talk
Is there a spiffy Rails way to easily get a list of fields updated in
an update call? I figure it's possible to go into the model and keep
track of what fields are changed in each field=() method (before the
save happens), but I'm hoping that there is a method that will do that
for me. Any ideas?

Thanks.

Al Evans

unread,
Aug 17, 2007, 8:06:00 AM8/17/07
to rubyonra...@googlegroups.com

acts_as_modified is a plugin that does what you want

http://svn.viney.net.nz/things/rails/plugins/acts_as_modified/

--Al Evans
--
Posted via http://www.ruby-forum.com/.

Dan

unread,
Aug 17, 2007, 8:18:29 AM8/17/07
to Ruby on Rails: Talk
That's exactly what I'm looking for! Thanks!
Reply all
Reply to author
Forward
0 new messages