[Rails] When configuring the Sass::Plugin, don't overwrite existing template locations. Closes GH-136.
This commit is contained in:
parent
9a49c457da
commit
869e0bfac7
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user