提交 b1164add 编写于 作者: J Jeremy Kemper

Fix arg destructure

上级 8e328304
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册