explain why require_relative is not used here [ci skip]

This commit is contained in:
Xavier Noria 2017-07-16 17:55:58 +02:00
parent 8f6bd6fa6f
commit 83f39a3bcf
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ 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 cannot be used here because the class might be
# provided by another gem, like redis-activesupport for example.
require "active_support/cache/#{store}"
rescue LoadError => e
raise "Could not find cache store adapter for #{store} (#{e})"