FIX: make sure rails sprockets sass functions are included when compiling sass

This commit is contained in:
Neil Lalonde 2014-06-17 12:45:33 -04:00
parent 43496958fe
commit f9e80e1eb2

View File

@ -21,6 +21,10 @@ class DiscourseSassCompiler
def initialize(scss, target)
@scss = scss
@target = target
unless Sass::Script::Functions < Sprockets::SassFunctions
Sass::Script::Functions.send :include, Sprockets::SassFunctions
end
end
# Compiles the given scss and output the css as a string.