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

Merge pull request #29764 from georgeclaghorn/third-party-cache-store-config

Fix configuring third-party cache stores such as ActiveSupport::Cache::RedisStore
This commit is contained in:
Matthew Draper 2017-07-12 23:19:27 +09:30 committed by GitHub
commit 21344061dc

View file

@ -101,7 +101,7 @@ module ActiveSupport
# Obtains the specified cache store class, given the name of the +store+.
# Raises an error when the store class cannot be found.
def retrieve_store_class(store)
require_relative "cache/#{store}"
require "active_support/cache/#{store}"
rescue LoadError => e
raise "Could not find cache store adapter for #{store} (#{e})"
else