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

chequear la descripción

This commit is contained in:
f 2022-03-04 19:16:36 -03:00
parent 3d5267451e
commit d8fd25a7cb

View file

@ -91,11 +91,14 @@ class MetadataFile < MetadataTemplate
value['path'].present? value['path'].present?
end end
private def description?
value['description'].present?
end
private
# No hay archivo pero se lo describió # No hay archivo pero se lo describió
def no_file_for_description? def no_file_for_description?
value['description'].present? && value['path'].blank? !path? && description?
end end
end end