Reload the compass configuration with each request in case it changes.

This commit is contained in:
Chris Eppstein 2010-08-29 02:55:26 -07:00
parent ca789f00d8
commit 8a7fdd6fa3

View File

@ -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