From 7c8d50ebc589f7cd4bcb0b6dd8beff25cd51a053 Mon Sep 17 00:00:00 2001 From: Morgan Brown Date: Tue, 9 Jul 2024 14:00:04 +0200 Subject: [PATCH] Experiment with require --- lib/cached_resource/configuration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cached_resource/configuration.rb b/lib/cached_resource/configuration.rb index 272664e..4e5d556 100644 --- a/lib/cached_resource/configuration.rb +++ b/lib/cached_resource/configuration.rb @@ -69,7 +69,8 @@ def concurrent_write=(value) def require_concurrent_ruby begin - send :require, 'concurrent/promise' + # send :require, 'concurrent/promise' + require 'concurrent/promise' rescue LoadError @cached_resource.logger.error( "`concurrent_write` option is enabled, but `concurrent-ruby` is not an installed dependency"