Don't restrict image filetypes to JPG

This commit is contained in:
Matt-Yorkley
2020-10-21 13:42:07 +01:00
parent 3dc3e0970e
commit 92d6168a14

View File

@@ -6,8 +6,8 @@ module Spree
validate :no_attachment_errors
has_attached_file :attachment,
styles: { mini: ["48x48#", :jpg], small: ["227x227#", :jpg],
product: ["240x240>", :jpg], large: ["600x600>", :jpg] },
styles: { mini: "48x48#", small: "227x227#",
product: "240x240>", large: "600x600>" },
default_style: :product,
url: '/spree/products/:id/:style/:basename.:extension',
path: ':rails_root/public/spree/products/:id/:style/:basename.:extension',