Reload the compass configuration with each request in case it changes.
This commit is contained in:
parent
ca789f00d8
commit
8a7fdd6fa3
@ -54,9 +54,7 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def configure_sass_plugin!
|
def configure_sass_plugin!
|
||||||
return if sass_plugin_configured?
|
|
||||||
require 'sass/plugin'
|
require 'sass/plugin'
|
||||||
@sass_plugin_configured = true
|
|
||||||
config = sass_plugin_configuration
|
config = sass_plugin_configuration
|
||||||
locations = config.delete(:template_location)
|
locations = config.delete(:template_location)
|
||||||
Sass::Plugin.options.merge!(config)
|
Sass::Plugin.options.merge!(config)
|
||||||
@ -67,10 +65,6 @@ module Compass
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def sass_plugin_configured?
|
|
||||||
@sass_plugin_configured
|
|
||||||
end
|
|
||||||
|
|
||||||
def sass_engine_options
|
def sass_engine_options
|
||||||
configuration.to_sass_engine_options
|
configuration.to_sass_engine_options
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user