-
Notifications
You must be signed in to change notification settings - Fork 130
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
Support for tracking has_and_belongs_to_many associations. #217
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, but I understand your concern.
README.md
Outdated
track_history :on => [:embedded_relations] # all embedded relations will be tracked | ||
track_history :on => [ | ||
:embedded_relations, | ||
:rereferenced_relations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo? Should be :referenced_relations
before_add: :track_references, | ||
before_remove: :track_references | ||
}.merge(opts) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting idea! Does feel like a bit of a hack though...
Status update for this ? |
I haven't made progress on it and probably won't any time soon. |
Replaces #215.
@mikwat Check this out? I find the overwriting of
has_and_belongs_to_many
very ugly and the whole code here feels a lot like a hack.Also I bet undo, redo and such don't work in these scenarios, needs specs.