diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-01 17:55:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-01 17:55:39 -0700 |
commit | 6e1df2ca4631b8da6dae348af9d791f6e9aee1c5 (patch) | |
tree | 188930c3665e88097ba8247df2a1652eb5abc6a5 /activesupport/lib/active_support/cache | |
parent | dfa331ae154c0475dfc631528071bdb06947acc2 (diff) | |
download | rails-6e1df2ca4631b8da6dae348af9d791f6e9aee1c5.tar.gz rails-6e1df2ca4631b8da6dae348af9d791f6e9aee1c5.tar.bz2 rails-6e1df2ca4631b8da6dae348af9d791f6e9aee1c5.zip |
remove another lolinject
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r-- | activesupport/lib/active_support/cache/mem_cache_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb index f32b562368..9eee3fc5e3 100644 --- a/activesupport/lib/active_support/cache/mem_cache_store.rb +++ b/activesupport/lib/active_support/cache/mem_cache_store.rb @@ -73,7 +73,7 @@ module ActiveSupport def read_multi(*names) options = names.extract_options! options = merged_options(options) - keys_to_names = names.inject({}){|map, name| map[escape_key(namespaced_key(name, options))] = name; map} + keys_to_names = Hash[names.map{|name| [escape_key(namespaced_key(name, options)), name]}] raw_values = @data.get_multi(keys_to_names.keys, :raw => true) values = {} raw_values.each do |key, value| |