lib/dry/behaviour/black_tie.rb in dry-behaviour-0.2.0 vs lib/dry/behaviour/black_tie.rb in dry-behaviour-0.2.1

- old
+ new

@@ -64,10 +64,12 @@ safe_logger.warn("Implicit delegate #{(protocol || self).inspect}##{m} to #{target}") DELEGATE_METHOD.(mod.singleton_class, [m] * 2) acc << m end end.each do |m| - BlackTie.implementations[protocol || self][target][m] = mod.method(m).to_proc + [*target].each do |tgt| + BlackTie.implementations[protocol || self][tgt][m] = mod.method(m).to_proc + end end end end module_function :defimpl