From 55abebe438751133231ec2bd082097e8646f6b8c Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Mon, 11 Feb 2019 22:27:39 +0100 Subject: [PATCH] Set Paperclip as the default storage strategy We keep Paperclip as the default strategy for new apps. --- .../spree/install/templates/config/initializers/spree.rb.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/lib/generators/spree/install/templates/config/initializers/spree.rb.tt b/core/lib/generators/spree/install/templates/config/initializers/spree.rb.tt index e4d4a91d76d..5039d31dc43 100644 --- a/core/lib/generators/spree/install/templates/config/initializers/spree.rb.tt +++ b/core/lib/generators/spree/install/templates/config/initializers/spree.rb.tt @@ -18,6 +18,9 @@ Spree.config do |config| # any inventory changes. # config.inventory_cache_threshold = 3 + # Enable Paperclip adapter for attachments on images and taxons + config.image_attachment_module = 'Spree::Image::PaperclipAttachment' + config.taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment' # Frontend: