mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:36:21 +00:00
chequear la descripción
This commit is contained in:
parent
3d5267451e
commit
d8fd25a7cb
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue