From 1cc03d90e9e1cf10137f38ee3bf064e11b81e828 Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Thu, 1 Aug 2024 23:32:47 +1000 Subject: [PATCH] Pass custom options to inherited source classes --- lib/dry/system/provider_registrar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dry/system/provider_registrar.rb b/lib/dry/system/provider_registrar.rb index 75302a2a..4e878da5 100644 --- a/lib/dry/system/provider_registrar.rb +++ b/lib/dry/system/provider_registrar.rb @@ -237,7 +237,7 @@ def build_provider_from_source(name, source:, group:, options:, &block) provider_source = System.provider_sources.resolve(name: source, group: group) source_options = - if provider_source.source == provider_source_class + if provider_source.source <= provider_source_class provider_source_options else {}