mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #2634 from guilleiguaran/fix-sprockets-rewrite-asset-path
Fix Sprockets rewrite_asset_path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user