1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Separate keyword arguments from parameters

This commit is contained in:
Akira Matsuda 2019-09-13 16:21:32 +09:00
parent 923439777a
commit 9845cd6338

View file

@ -58,7 +58,8 @@ module ActiveSupport
case store
when Symbol
retrieve_store_class(store).new(*parameters)
options = parameters.extract_options!
retrieve_store_class(store).new(*parameters, **options)
when nil
ActiveSupport::Cache::MemoryStore.new
else