5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-19 11:50:47 +00:00

validar imágenes

This commit is contained in:
f 2022-03-08 13:21:13 -03:00
parent 7de96a4581
commit 79974b7104

View file

@ -5,7 +5,7 @@ class MetadataImage < MetadataFile
def validate
super
errors << I18n.t('metadata.image.not_an_image') unless path? && image?
errors << I18n.t('metadata.image.not_an_image') if path? && !image?
errors.compact!
errors.empty?