Permalink
Browse files

Make sure #compute_public_path caching allows to return different res…

…ults for different given sources [#1471 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent cec8a92 commit 1182658e767d2db4a46faed35f0b1075c5dd9a88 Sven Fuchs committed with josh Nov 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -592,7 +592,7 @@ def compute_public_path(source)
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)

0 comments on commit 1182658

Please sign in to comment.