From 869e0bfac784e061ae2e10e3275d726fcea13269 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 14 May 2010 23:25:27 -0700 Subject: [PATCH] [Rails] When configuring the Sass::Plugin, don't overwrite existing template locations. Closes GH-136. --- lib/compass/configuration/helpers.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/compass/configuration/helpers.rb b/lib/compass/configuration/helpers.rb index b9884fd0..ea761389 100644 --- a/lib/compass/configuration/helpers.rb +++ b/lib/compass/configuration/helpers.rb @@ -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?