lib/dry/monitor/rack/middleware.rb in dry-monitor-0.3.2 vs lib/dry/monitor/rack/middleware.rb in dry-monitor-0.4.0
- old
+ new
@@ -12,12 +12,10 @@
Notifications.register_event(REQUEST_START)
Notifications.register_event(REQUEST_STOP)
Notifications.register_event(REQUEST_ERROR)
- attr_reader :app
-
- attr_reader :notifications
+ attr_reader :app, :notifications
def initialize(*args)
@notifications, @app = *args
end