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

Multiple associated audits #337

Open
ryanwjackson opened this issue Apr 8, 2017 · 6 comments
Open

Multiple associated audits #337

ryanwjackson opened this issue Apr 8, 2017 · 6 comments
Labels

Comments

@ryanwjackson
Copy link

ryanwjackson commented Apr 8, 2017

It would be good to have the ability to associate a model with multiple parent models. Something like the following:

class Mother < ActiveRecord::Base
  audited
  has_associated_audits
end

class Father < ActiveRecord::Base
  audited
  has_associated_audits
end

class Child < ActiveRecord::Base
  audited associated_with: [:mother, :father]
end
@saygun
Copy link

saygun commented Apr 14, 2017

it would be great

@ryanwjackson
Copy link
Author

I'm happy to work on a PR for this, but I think this would require some schema changes. And I have not contributed to a project that requires migration. If someone would be down to help, I'd love to add this functionality.

Any takers?

@saygun
Copy link

saygun commented Apr 17, 2017

I might help you

@gabrielms
Copy link

Hey guys, i've made a pull request for that. #342

I'm not a experienced programmer, so if you guys could help me i would appreciate very much. :)

I've tested it on a project of mine, and it worked pretty well.

@fatkodima
Copy link
Contributor

I have made a pull request for that - #406.

@Kani999
Copy link

Kani999 commented Aug 6, 2019

Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants