Permalink
Browse files

Fix arg destructure

  • Loading branch information...
1 parent 8e32830 commit b1164adda12268b38bba9b0d81c0d26b7251b8bb @jeremy jeremy committed Nov 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 Strategy
# 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

0 comments on commit b1164ad

Please sign in to comment.