mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 18:46:22 +00:00
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
|
# Determina si es una imagen
|
||||||
def image?
|
def image?
|
||||||
|
return true unless file
|
||||||
|
|
||||||
filemagic.file(file).starts_with? 'image/'
|
filemagic.file(file).starts_with? 'image/'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue