From abebafd139bde43c9bc6e8ba7824139f8064b061 Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Tue, 30 May 2023 10:16:33 +0200 Subject: [PATCH] Stop using the paperclip adapter in the main installer When `--active_storage=false` is used in for the main installer we can use the new generator to copy the adapter in the host application. --- core/lib/generators/solidus/install/install_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/generators/solidus/install/install_generator.rb b/core/lib/generators/solidus/install/install_generator.rb index fc315a68b3a..19a0aa2323c 100644 --- a/core/lib/generators/solidus/install/install_generator.rb +++ b/core/lib/generators/solidus/install/install_generator.rb @@ -96,7 +96,7 @@ def install_file_attachment rake 'active_storage:install' else say_status :assets, "Paperclip", :green - gsub_file 'config/initializers/spree.rb', "::ActiveStorageAttachment", "::PaperclipAttachment" + rake "solidus:paperclip_adapter:install" end end