Permalink
Browse files

Fix Sprockets rewrite_asset_path

  • Loading branch information...
1 parent d81fe8d commit 812d1ae7426c4de0625c56eea78ebf82840a7084 @guilleiguaran guilleiguaran committed with josh Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -126,7 +126,7 @@ def rewrite_asset_path(source, dir)
else
source = digest_for(source) if performing_caching?
source = File.join(dir, source)
- source = "/#{url}" unless source =~ /^\//
+ source = "/#{source}" unless source =~ /^\//
source
end
end

0 comments on commit 812d1ae

Please sign in to comment.