aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-07-12 23:19:27 +0930
committerGitHub <noreply@github.com>2017-07-12 23:19:27 +0930
commit21344061dc17151fe749b9dc76a127d597ec43ef (patch)
treeca6cfe14936d9f581e63349515523ed92cc9cf4e
parent03925dc26a747075ff37660d1f0a060a8178bf66 (diff)
parent4816e823e745adb1ef0d6a9d5268f8c61af98eca (diff)
downloadrails-21344061dc17151fe749b9dc76a127d597ec43ef.tar.gz
rails-21344061dc17151fe749b9dc76a127d597ec43ef.tar.bz2
rails-21344061dc17151fe749b9dc76a127d597ec43ef.zip
Merge pull request #29764 from georgeclaghorn/third-party-cache-store-config
Fix configuring third-party cache stores such as ActiveSupport::Cache::RedisStore
-rw-r--r--activesupport/lib/active_support/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 865210e5f5..e9ed60398b 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -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