From cc95bb27e873dc6140f9a909a57f075a0ef2f387 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 25 Jul 2017 11:09:47 +0200 Subject: fix: make customization available to sass Somehow sass did not follow the rails assets path order. Therefore the default tail.scss would stay in effect even when there was a different tail.scss in the customization folder. Adding the customization stylesheet folder to the sass load_paths works around this for now. Still need to check if it works in production though. --- config/initializers/customization.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/customization.rb b/config/initializers/customization.rb index 6d9c741..2b5301e 100644 --- a/config/initializers/customization.rb +++ b/config/initializers/customization.rb @@ -21,6 +21,7 @@ customization_directory = APP_CONFIG["customization_directory"] # Rails.application.config.assets.paths.unshift "#{customization_directory}/images" Rails.application.config.assets.paths.unshift "#{customization_directory}/stylesheets" +Rails.application.config.sass.load_paths.unshift "#{customization_directory}/stylesheets" # # Copy files to public # -- cgit v1.2.3