Friday, June 26, 2009

Tracking value changes in ActiveRecord objects

Info about getting to old / new values on activerecord objects:

http://ryandaigle.com/articles/2008/3/31/what-s-new-in-edge-rails-dirty-objects

This can be useful if validation varies based upon the prior state of the the object, etc.

No comments:

Post a Comment