Skip to content

Commit

Permalink
Squeeze extra slashes which confuse GridFS
Browse files Browse the repository at this point in the history
  • Loading branch information
romanbsd committed Aug 26, 2011
1 parent 82ddf1c commit 45a7436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/storage/grid_fs.rb
Expand Up @@ -52,7 +52,7 @@ def url
unless @uploader.grid_fs_access_url
nil
else
[@uploader.grid_fs_access_url, @path].join("/")
[@uploader.grid_fs_access_url, @path].join("/").squeeze("/")
end
end

Expand Down

0 comments on commit 45a7436

Please sign in to comment.