no comprobar imagenes que no existen
This commit is contained in:
parent
a0660a473b
commit
0fd76ebb04
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue