projecthydra/active_fedora — pull request #191 by cjcolvar (2013-08-12 17:26:50+00:00)
Title: Include ActiveModel::Dirty on Base, call field_will_change! on delegated methods, and track changes on save

This PR implements ActiveModel::Dirty for ActiveFedora::Base objects. As discussed on the committer's call this might not be an ideal solution but might be best for now. Ideally, delegate would delegate all of the AM::Dirty calls to the appropriate datastream which would track the changes so obj.attribute_changed? and obj.datastream.attribute_changed? would both exist and report the same value. But given how OM works this might be hard to implement.