Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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!

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

Successfully merging this pull request may close these issues.

2 participants