Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Sprockets rewrite_asset_path

  • Loading branch information...
commit 812d1ae7426c4de0625c56eea78ebf82840a7084 1 parent d81fe8d
Guillermo Iguaran guilleiguaran authored josh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/sprockets/helpers/rails_helper.rb
2  actionpack/lib/sprockets/helpers/rails_helper.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.