mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Make sure #compute_public_path caching allows to return different results for different given sources [#1471 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
@@ -592,7 +592,7 @@ module ActionView
|
||||
source
|
||||
else
|
||||
CacheGuard.synchronize do
|
||||
Cache[@cache_key] ||= begin
|
||||
Cache[@cache_key + [source]] ||= begin
|
||||
source += ".#{extension}" if missing_extension?(source) || file_exists_with_extension?(source)
|
||||
source = "/#{directory}/#{source}" unless source[0] == ?/
|
||||
source = rewrite_asset_path(source)
|
||||
|
||||
Reference in New Issue
Block a user