Skip to content

Commit

Permalink
Make sure #compute_public_path caching allows to return different res…
Browse files Browse the repository at this point in the history
…ults for different given sources [#1471 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
Sven Fuchs authored and josh committed Nov 29, 2008
1 parent cec8a92 commit 1182658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/asset_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1182658

Please sign in to comment.