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
Bug: ActiveStorage method "attach" not work if model have validation errors #40333
Comments
@nPaul Active Storage attach tries to re-save the Active Record. Refer: https://github.com/rails/rails/blob/master/activestorage/lib/active_storage/attached/one.rb#L33 Not sure if attach should accept the argument like The work-around could be as follows:
|
Yes it works But i think it is bug, or not obviously For example i think method |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
+1 |
please fix it
example:
The text was updated successfully, but these errors were encountered: