Skip to content

Commit

Permalink
Pass custom options to inherited source classes
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Aug 1, 2024
1 parent a8caa31 commit ae1ff81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dry/system/provider_registrar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
{}
Expand Down

0 comments on commit ae1ff81

Please sign in to comment.