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 e1f11ff37f79d72b3afd5b718529186f2bc1417f 1 parent 041f1c7
Guillermo Iguaran guilleiguaran authored
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.