From 15f96f4ce3d4b63ef89bab946fc4172aff0d3224 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 4 Jul 2024 14:31:36 +0200 Subject: [PATCH] Touch asset after file rename [SCI-10842] --- app/models/asset.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/asset.rb b/app/models/asset.rb index 10db504b7..a1c55770e 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb @@ -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