lib/dry/system/plugins/monitoring.rb in dry-system-0.10.1 vs lib/dry/system/plugins/monitoring.rb in dry-system-0.11.0
- old
+ new
@@ -8,11 +8,10 @@
module Monitoring
# @api private
def self.extended(system)
super
- system.use(:decorate)
system.use(:notifications)
system.after(:configure) do
self[:notifications].register_event(:monitoring)
end
@@ -34,10 +33,10 @@
proxy.monitored_methods.each do |meth|
notifications.subscribe(:monitoring, target: key, method: meth, &block)
end
end
- decorate(key, decorator: proxy.new(target, notifications))
+ decorate(key, with: proxy.new(target, notifications))
end
end
end
end
end