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

Fix configuring third-party cache stores such as ActiveSupport::Cache::RedisStore

Broken in 8da30ad.
This commit is contained in:
George Claghorn 2017-07-12 09:25:03 -04:00
parent 03925dc26a
commit 4816e823e7

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