1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/test
Victor Perez Rodriguez 396b43a99d touch parent model when an attachment is purged
Currently `delete` is used on the `purge` and `purge_later` methods,
that prevent any callbacks to be triggered which causes the parent
model to not be updated when an attachment is purged. This behaviour
cause issues on some caching strategies as reported here: https://github.com/rails/rails/issues/39858

Changes:

* Add `record&.touch` on `attachment#purge`
* Add `record&.touch` on `attachment#purge_later`
* Remove extra blank line on attachment.rb
* Add tests which are failing before this change and pass after the change
2020-07-26 12:22:37 -05:00
..
analyzer Fix typo s/:heigh/:height/ 2019-10-03 15:42:47 +09:00
controllers Use Active Record signed IDs in Active Storage 2020-07-04 21:09:00 -04:00
database touch parent model when an attachment is purged 2020-07-26 12:22:37 -05:00
dummy Unify raise_on_missing_translations for views and controllers 2020-05-20 02:42:59 +03:00
fixtures/files Use a smaller TIFF file as fixture 2019-07-27 23:08:49 +05:30
jobs Correct test class name 2019-09-28 10:31:26 -04:00
models touch parent model when an attachment is purged 2020-07-26 12:22:37 -05:00
previewer
service Include Content-Length in signature for ActiveStorage direct upload 2020-05-15 14:32:19 -07:00
template url -> URL where apt except inside actionpack/ 2019-04-01 22:56:35 +05:30
javascript_package_test.rb Enforce that activestorage compiled JS is in sync with source code 2019-10-18 18:02:02 -07:00
test_helper.rb Fix autosave association bug with ActiveStorage::Attachments 2020-04-24 13:16:16 -04:00