From 83f39a3bcf3f50d12d41bff4a110c57e2e4be605 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 16 Jul 2017 17:55:58 +0200 Subject: explain why require_relative is not used here [ci skip] --- activesupport/lib/active_support/cache.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index e9ed60398b..49d8965cb1 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -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})" -- cgit v1.2.3