5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 06:24:17 +00:00

no permitir subir imágenes que no son para web

This commit is contained in:
f 2022-03-04 19:21:48 -03:00
parent fdbe724f7c
commit f3df550494

View file

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