FIX: include theme vars in site customizations

This commit is contained in:
Sam 2015-08-17 10:59:46 +10:00
parent 84c6c2b48c
commit f9deebefb9

View file

@ -17,7 +17,7 @@ class SiteCustomization < ActiveRecord::Base
end
def compile_stylesheet(scss)
DiscourseSassCompiler.compile(scss, 'custom')
DiscourseSassCompiler.compile("@import \"theme_variables\";\n" << scss, 'custom')
rescue => e
puts e.backtrace.join("\n") unless Sass::SyntaxError === e
raise e