Michael Siebert
2006-Aug-06 08:49 UTC
[Rails] ActiveRecord: determine if attribute has changed since save
Hello there, i need to determine whether an attribute of my model has changed since the last time it was saved. how can i do this? greets -- Michael Siebert <info@siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060806/f0666f58/attachment.html
Jonathan Viney
2006-Aug-06 11:04 UTC
[Rails] ActiveRecord: determine if attribute has changed since save
Have a look at a couple of my plugins, acts_as_changed and acts_as_modified. acts_as_modified has more documentation, so it''s probably easier to follow. http://svn.viney.net.nz/things/rails/plugins/acts_as_modified http://svn.viney.net.nz/things/rails/plugins/acts_as_changed -Jonathan On 8/6/06, Michael Siebert <info@siebert-wd.de> wrote:> Hello there, > i need to determine whether an attribute of my model has changed since the > last time it was saved. how can i do this? > > greets > > -- > Michael Siebert < info@siebert-wd.de> > > www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >