mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Merge pull request #7683 from artoscinote/ma_SCI_10842
Touch asset after file rename [SCI-10842]
This commit is contained in:
commit
ae1034e994
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue