1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

more robust compass url generation handling. see #480

This commit is contained in:
Gleb Mazovetskiy 2013-12-08 21:50:29 +01:00
parent 2d18c2ad0e
commit 1f77da0b28

View file

@ -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
end