diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-22 11:12:54 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-22 11:12:54 -0500 |
commit | e1f11ff37f79d72b3afd5b718529186f2bc1417f (patch) | |
tree | fd87cb699880b95dec203362e40c2c406993a3c2 /actionpack/lib/sprockets | |
parent | 041f1c719257c313266dd4850aee9aeda2ea9eb0 (diff) | |
download | rails-e1f11ff37f79d72b3afd5b718529186f2bc1417f.tar.gz rails-e1f11ff37f79d72b3afd5b718529186f2bc1417f.tar.bz2 rails-e1f11ff37f79d72b3afd5b718529186f2bc1417f.zip |
Fix Sprockets rewrite_asset_path
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index cb01532449..c239af77bc 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -126,7 +126,7 @@ module Sprockets else source = digest_for(source) if performing_caching? source = File.join(dir, source) - source = "/#{url}" unless source =~ /^\// + source = "/#{source}" unless source =~ /^\// source end end |