This commit is contained in:
Ryuta Kamizono 2020-02-05 14:31:11 +09:00
parent fa986ae0ca
commit a33dbb17b0
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,7 @@ module AbstractController
end
def cache_store=(store)
config.cache_store = ActiveSupport::Cache.lookup_store(store)
config.cache_store = ActiveSupport::Cache.lookup_store(*store)
end
private

View File

@ -54,7 +54,6 @@ module ActiveSupport
# ActiveSupport::Cache.lookup_store(MyOwnCacheStore.new)
# # => returns MyOwnCacheStore.new
def lookup_store(store = nil, *parameters)
case store
when Symbol
options = parameters.extract_options!