Touch asset after file rename [SCI-10842]

This commit is contained in:
Martin Artnik 2024-07-04 14:31:36 +02:00
parent 3b0aabde0b
commit 15f96f4ce3

View file

@ -385,6 +385,10 @@ class Asset < ApplicationRecord
new_image_filename = "#{new_name}.png"
preview_image.blob.update!(filename: new_image_filename)
end
# rubocop:disable Rails/SkipsModelValidations
touch
# rubocop:enable Rails/SkipsModelValidations
end
end