Permalink
Browse files

Merge pull request #2634 from guilleiguaran/fix-sprockets-rewrite-ass…

…et-path

Fix Sprockets rewrite_asset_path
  • Loading branch information...
2 parents 041f1c7 + e1f11ff commit cfb5e14f5d25520d1bf3fdbaa5a610d285752628 @josh josh committed 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 cfb5e14

Please sign in to comment.