File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ def initialize(options={})
13
13
end
14
14
15
15
@image_path = File . expand_path ( File . join ( Rails . root , @config [ 'image_path' ] || 'public/images' ) )
16
+ @dest_image_path = File . expand_path ( File . join ( Rails . root , @config [ 'dest_image_path' ] || 'public/images' ) )
16
17
@stylesheet_path = File . expand_path ( File . join ( Rails . root , @config [ 'stylesheet_path' ] || 'public/stylesheets' ) )
17
18
18
19
@css_images_path = @config [ 'css_images_path' ] ||= "images"
@@ -304,7 +305,7 @@ def all_images(directory)
304
305
305
306
# destination css sprite image path
306
307
def dest_image_path ( directory )
307
- directory + "." + @format
308
+ File . join ( @dest_image_path , File . basename ( directory ) ) + "." + @format
308
309
end
309
310
310
311
# destination css sprite image name
You can’t perform that action at this time.
0 commit comments