mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:31:41 +00:00
validar imágenes
This commit is contained in:
parent
7de96a4581
commit
79974b7104
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue