5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 13:36:21 +00:00

no comprobar imagenes que no existen

This commit is contained in:
f 2020-08-07 17:49:46 -03:00
parent a0660a473b
commit 0fd76ebb04

View file

@ -13,6 +13,8 @@ class MetadataImage < MetadataFile
# Determina si es una imagen
def image?
return true unless file
filemagic.file(file).starts_with? 'image/'
end
end