diff options
author | Richard Schneeman <richard.schneeman+no-recruiters@gmail.com> | 2018-10-05 21:30:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 21:30:49 -0500 |
commit | 4ad7bbf1d298ea458ced6b10222566b5934b8c3e (patch) | |
tree | c064b8006c5572ea1e72673d00232b88ae46e1c7 /activesupport/lib | |
parent | 0ece3911cc325640ff83e3bcea7eda38a4847470 (diff) | |
parent | d5b57c890e2d0d7e42d726fb5a16a0ab30da67ea (diff) | |
download | rails-4ad7bbf1d298ea458ced6b10222566b5934b8c3e.tar.gz rails-4ad7bbf1d298ea458ced6b10222566b5934b8c3e.tar.bz2 rails-4ad7bbf1d298ea458ced6b10222566b5934b8c3e.zip |
Merge pull request #34005 from tgturner/expand-cache-key-bug-fix
Array with single item correctly uses cache_key
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 222ef2b515..2be79d86dd 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -647,7 +647,7 @@ module ActiveSupport if key.size > 1 key = key.collect { |element| expanded_key(element) } else - key = key.first + key = expanded_key(key.first) end when Hash key = key.sort_by { |k, _| k.to_s }.collect { |k, v| "#{k}=#{v}" } |