Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include ActiveModel::Dirty on Base, call field_will_change! on delegated methods, and track changes on save #191

Merged
merged 1 commit into from
Aug 12, 2013

Conversation

cjcolvar
Copy link
Member

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.

@jcoyne
Copy link
Member

jcoyne commented Aug 12, 2013

👍

@mjgiarlo
Copy link
Member

Looks good to me. 👍

jeremyf added a commit that referenced this pull request Aug 12, 2013
Include ActiveModel::Dirty on Base, call field_will_change! on delegated methods, and track changes on save
@jeremyf jeremyf merged commit 884f740 into samvera:master Aug 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants