1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
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!