5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 14:11:41 +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 def validate
super 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.compact!
errors.empty? errors.empty?