From 995a20cd3691950eee1af5c7b0d430dc749e4c44 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Tue, 22 Feb 2011 21:32:48 -0500 Subject: [PATCH] fixed relative path call --- Gemfile.lock | 2 +- lib/compass/sass_extensions/functions/sprites.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 69b4f195..360e7d17 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - compass (0.11.beta.2.fb61e54) + compass (0.11.beta.2.994cf53) chunky_png (~> 0.12.0) sass (>= 3.1.0.alpha.218) diff --git a/lib/compass/sass_extensions/functions/sprites.rb b/lib/compass/sass_extensions/functions/sprites.rb index 728de131..9730f5d9 100644 --- a/lib/compass/sass_extensions/functions/sprites.rb +++ b/lib/compass/sass_extensions/functions/sprites.rb @@ -133,7 +133,7 @@ module Compass::SassExtensions::Functions::Sprites missing_sprite!("sprite-file") end if image = map.image_for(sprite.value) - Sass::Script::String.new(image[:relative_file]) + Sass::Script::String.new(image.relative_file) else missing_image!(map, sprite) end