aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorGraham Turner <turnertgraham@gmail.com>2018-09-27 14:58:29 -0400
committerGraham Turner <turnertgraham@gmail.com>2018-10-05 19:24:49 -0400
commitd5b57c890e2d0d7e42d726fb5a16a0ab30da67ea (patch)
treec064b8006c5572ea1e72673d00232b88ae46e1c7 /activesupport/lib
parent0ece3911cc325640ff83e3bcea7eda38a4847470 (diff)
downloadrails-d5b57c890e2d0d7e42d726fb5a16a0ab30da67ea.tar.gz
rails-d5b57c890e2d0d7e42d726fb5a16a0ab30da67ea.tar.bz2
rails-d5b57c890e2d0d7e42d726fb5a16a0ab30da67ea.zip
Array with single item correctly uses cache_key
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/cache.rb2
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}" }