Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Does not support HABTM relationships #72

Open
ayb opened this Issue · 8 comments

5 participants

@ayb

I am really loving this gem and in the process of doing a full integration into a Rails 2.x app.

Unfortunately acts_as_audited does not have any way to track changes in many to many relationships, specifically has-and-belongs-to-many (HABTM).

In these cases the only data representing the relationship is in a join table with no actual model. The only way I can think of to implement acts_as_audited would be to change HABTM to has_many :through, so there is an actual model to track. However even this is not ideal.

If I am missing something please let me know. I'm really loving the implementation but not sure how to proceed withthis.

@marcalc

Anyone could please give a feedback on this? Thanks!

@netoisstools

We are having a similar issue with has_many through - adding or deleting IDs using the magical _ids attribute does not trigger audit entries, not sure why that bypasses acts_as_audited's hooks, still investigating - finding others having the same issues but no acts_as_audited idioms to resolve the issue yet.

@cj
cj commented

any update on this?

@tesserakt

bump we are having the same issues

@tesserakt

To clarify, we have a has_many through relationship

@tesserakt

@netoisstools did you all ever resolve your issue?

@tesserakt

@ayb Did you have any success in resolving this?

@ayb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.