lib/dry/system/plugins/monitoring.rb in dry-system-1.0.1 vs lib/dry/system/plugins/monitoring.rb in dry-system-1.1.0.beta1

- old
+ new

@@ -34,10 +34,10 @@ proxy.monitored_methods.each do |meth| notifications.subscribe(:monitoring, target: key, method: meth, &block) end end - decorate(key, with: -> target { proxy.new(target, notifications) }) + decorate(key, with: -> tgt { proxy.new(tgt, notifications) }) end end end end end