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
attachment_cache is not working with nested attributes #2206
Milestone
Comments
I found that |
It seems that if you pass some other attribute to be updated, like for example |
Workaround: # inside the model class with `mount_uploader`
before_validation do
attachment_will_change! if attachment_cache.present?
end |
mshibuya
added a commit
that referenced
this issue
Jan 15, 2023
mshibuya
added a commit
that referenced
this issue
Jan 15, 2023
mshibuya
added a commit
that referenced
this issue
Jan 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm facing this issue on Rails 5.1.2 and Carrierwave 1.1.0, even using
rails console
:But the image file is not updated,
but if I do:
it gets updated
The text was updated successfully, but these errors were encountered: