Commit 4dd30776aec0ebf19c51a6ae0cf7acf28269d056

Authored by Andrey Karpikov
1 parent 476844dc

add webp image format for preview

@@ -6,7 +6,7 @@ module Kanjai @@ -6,7 +6,7 @@ module Kanjai
6 6
7 belongs_to :object, polymorphic: true, optional: true 7 belongs_to :object, polymorphic: true, optional: true
8 8
9 - IMAGE_MIME_TYPE = ['image/bmp', 'image/gif', 'image/jpeg', 'image/pipeg', 'image/svg+xml', 'image/png'] 9 + IMAGE_MIME_TYPE = ['image/bmp', 'image/gif', 'image/jpeg', 'image/pipeg', 'image/svg+xml', 'image/png', 'image/webp']
10 PDF_MIME_TYPE = ['application/pdf'] 10 PDF_MIME_TYPE = ['application/pdf']
11 11
12 # has_attached_file :image, 12 # has_attached_file :image,
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.378" 2 + VERSION = "0.0.379"
3 end 3 end