Skip to content

Commit

Permalink
[Rails] When configuring the Sass::Plugin, don't overwrite existing t…
Browse files Browse the repository at this point in the history
…emplate locations. Closes CompassGH-136.
  • Loading branch information
chriseppstein committed May 15, 2010
1 parent 9a49c45 commit 869e0bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/compass/configuration/helpers.rb
Expand Up @@ -55,7 +55,12 @@ def sass_plugin_configuration

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?
Expand Down

0 comments on commit 869e0bf

Please sign in to comment.