5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 21:26:21 +00:00

fix: vaciar la imagen al borrarla

This commit is contained in:
f 2022-11-28 19:31:09 -03:00
parent 4fc2ece2d5
commit 581e8e10c2

View file

@ -42,8 +42,12 @@ class MetadataFile < MetadataTemplate
# Asociar la imagen subida al sitio y obtener la ruta # Asociar la imagen subida al sitio y obtener la ruta
# @return [Boolean] # @return [Boolean]
def save def save
if value['path'].blank?
self[:value] = default_value
else
value['description'] = sanitize value['description'] value['description'] = sanitize value['description']
value['path'] = relative_destination_path_with_filename.to_s if static_file value['path'] = relative_destination_path_with_filename.to_s if static_file
end
true true
end end