diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-08 23:29:33 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-08 23:29:33 -0800 |
commit | b1164adda12268b38bba9b0d81c0d26b7251b8bb (patch) | |
tree | 4d805fd83000aa38a3f97fcaf1fb226b343c1f90 /activesupport/lib | |
parent | 8e32830412c051d97613ea4b84c0d8b64e612538 (diff) | |
download | rails-b1164adda12268b38bba9b0d81c0d26b7251b8bb.tar.gz rails-b1164adda12268b38bba9b0d81c0d26b7251b8bb.tar.bz2 rails-b1164adda12268b38bba9b0d81c0d26b7251b8bb.zip |
Fix arg destructure
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 2f714c62ee..f2d957f154 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -1,4 +1,5 @@ require 'benchmark' +require 'active_support/core_ext/array/wrap' require 'active_support/core_ext/benchmark' require 'active_support/core_ext/exception' require 'active_support/core_ext/class/attribute_accessors' @@ -43,8 +44,7 @@ module ActiveSupport # ActiveSupport::Cache.lookup_store(MyOwnCacheStore.new) # # => returns MyOwnCacheStore.new def self.lookup_store(*store_option) - store = store_option.shift - parameters = store_option + store, *parameters = *Array.wrap(store_option).flatten case store when Symbol |