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

Flush mounters on dup of active record model #1544

Merged
merged 1 commit into from
Feb 26, 2015

Conversation

danielevans
Copy link
Contributor

When an ActiveRecord model is "#dup"ed the mounted carrierwave uploaders retain their reference to the old model.

Gist showing the bug: https://gist.github.com/danielevans/2316c9b07afa7efca92a

@danielevans
Copy link
Contributor Author

This issue appears to be the root cause of #1127

bensie added a commit that referenced this pull request Feb 26, 2015
Flush mounters on dup of active record model
@bensie bensie merged commit 79b8e24 into carrierwaveuploader:master Feb 26, 2015
@bensie
Copy link
Member

bensie commented Feb 26, 2015

Thanks @danielevans!

@danielevans
Copy link
Contributor Author

Thank you!

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.

None yet

2 participants