aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2011-08-22 10:24:16 -0700
committerJoshua Peek <josh@joshpeek.com>2011-08-22 10:24:16 -0700
commitcfb5e14f5d25520d1bf3fdbaa5a610d285752628 (patch)
treefd87cb699880b95dec203362e40c2c406993a3c2
parent041f1c719257c313266dd4850aee9aeda2ea9eb0 (diff)
parente1f11ff37f79d72b3afd5b718529186f2bc1417f (diff)
downloadrails-cfb5e14f5d25520d1bf3fdbaa5a610d285752628.tar.gz
rails-cfb5e14f5d25520d1bf3fdbaa5a610d285752628.tar.bz2
rails-cfb5e14f5d25520d1bf3fdbaa5a610d285752628.zip
Merge pull request #2634 from guilleiguaran/fix-sprockets-rewrite-asset-path
Fix Sprockets rewrite_asset_path
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb2
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