diff --git a/lib/compass/sass_extensions/sprites/sprite_methods.rb b/lib/compass/sass_extensions/sprites/sprite_methods.rb index b15477da..bd905247 100644 --- a/lib/compass/sass_extensions/sprites/sprite_methods.rb +++ b/lib/compass/sass_extensions/sprites/sprite_methods.rb @@ -47,7 +47,7 @@ module Compass end def relativize(path) - Pathname.new(path).relative_path_from(Pathname.new(Dir.pwd)).to_s + Pathname.new(path).relative_path_from(Pathname.new(Dir.pwd)).to_s rescue path end # Generate a sprite image if necessary