Skip to content

Commit

Permalink
Fix Sprockets rewrite_asset_path
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleiguaran authored and josh committed Aug 22, 2011
1 parent d81fe8d commit 812d1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/sprockets/helpers/rails_helper.rb
Expand Up @@ -126,7 +126,7 @@ def rewrite_asset_path(source, dir)
else else
source = digest_for(source) if performing_caching? source = digest_for(source) if performing_caching?
source = File.join(dir, source) source = File.join(dir, source)
source = "/#{url}" unless source =~ /^\// source = "/#{source}" unless source =~ /^\//
source source
end end
end end
Expand Down

0 comments on commit 812d1ae

Please sign in to comment.