diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-15 04:30:37 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-15 04:52:01 +0900 |
commit | 562dd0494a90d9d47849f052e8913f0050f3e494 (patch) | |
tree | 786aa2778e1ba384669b7100e24e16f4af1fa4a9 /activestorage/test/models | |
parent | f1af27fd9d9101684b26d0dcf2028859d67bec1f (diff) | |
download | rails-562dd0494a90d9d47849f052e8913f0050f3e494.tar.gz rails-562dd0494a90d9d47849f052e8913f0050f3e494.tar.bz2 rails-562dd0494a90d9d47849f052e8913f0050f3e494.zip |
Don't allow destroyed object mutation after `save` or `save!` is called
Currently `object.save` will unfreeze the object, due to
`changes_applied` replaces frozen `@attributes` to new `@attributes`.
Since originally destroyed objects are not allowed to be mutated, `save`
and `save!` should not return success in that case.
Fixes #28563.
Diffstat (limited to 'activestorage/test/models')
0 files changed, 0 insertions, 0 deletions