[Rails] When configuring the Sass::Plugin, don't overwrite existing template locations. Closes GH-136.

This commit is contained in:
Chris Eppstein 2010-05-14 23:25:27 -07:00
parent 9a49c457da
commit 869e0bfac7

View File

@ -55,7 +55,12 @@ module Compass
def configure_sass_plugin!
@sass_plugin_configured = true
Sass::Plugin.options.merge!(sass_plugin_configuration)
config = sass_plugin_configuration
locations = config.delete(:template_location)
Sass::Plugin.options.merge!(config)
locations.each do |sass_dir, css_dir|
Sass::Plugin.add_template_location sass_dir, css_dir
end
end
def sass_plugin_configured?