summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-07-25 11:09:47 +0200
committerAzul <azul@riseup.net>2017-07-25 11:11:42 +0200
commitcc95bb27e873dc6140f9a909a57f075a0ef2f387 (patch)
tree5b2173a7118219a961379950c961637dfc22db69 /config/initializers
parent3d3a1902782cf247dee1c68ea905ef1e6a804b63 (diff)
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.
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/customization.rb1
1 files changed, 1 insertions, 0 deletions
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
#