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

associated_with to support many associated_with: [] #209

Open
harveyico opened this issue Feb 16, 2015 · 3 comments
Open

associated_with to support many associated_with: [] #209

harveyico opened this issue Feb 16, 2015 · 3 comments

Comments

@harveyico
Copy link

Hello, is it possible to do multiple associated_with in a model? Lets say I have associated_with: [:product, :retailer] therefore, audited will create 2 audits associated to Product and Retailer. Thanks

@arinhouck
Copy link

I am curious about this solution as well. Has there been any thought around this yet?

@vraravam
Copy link

vraravam commented Mar 31, 2017

I am facing the same issue. My parent model has many belongs_to and has_one relationships - which I need to get stored with the same parent as far as audits go. I see that the oldest request for this has been back in 2015 - could you please add support for this? For eg:

User.has_many :educational_qualifications
User.has_one :address
User.has_many :work_experiences

In these cases, can someone suggest how I can get all changes in each of the Address, EducationalQualification and WorkExperience models into the same changes_hash for User?

@fatkodima
Copy link
Contributor

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

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

No branches or pull requests

4 participants