From 1f77da0b289af43b753534e34a24e80c8eee38ed Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 8 Dec 2013 21:50:29 +0100 Subject: [PATCH] more robust compass url generation handling. see #480 --- lib/bootstrap-sass/sass_functions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bootstrap-sass/sass_functions.rb b/lib/bootstrap-sass/sass_functions.rb index cca2489b..a78cc72c 100644 --- a/lib/bootstrap-sass/sass_functions.rb +++ b/lib/bootstrap-sass/sass_functions.rb @@ -16,7 +16,7 @@ module Sass::Script::Functions url = if Bootstrap.asset_pipeline? && (context = sprockets_context) context.send(:"#{type}_path", source.value) elsif Bootstrap.compass? - send(:"#{type}_url", source, Sass::Script::Bool.new(true)).value + send(:"#{type}_url", source, Sass::Script::Bool.new(true)).value.sub /url\((.*)\)$/, '\1' end # sass-only @@ -46,4 +46,4 @@ module Sass::Script::Functions importer.context end end -end \ No newline at end of file +end