lib/dry/monitor/rack/middleware.rb in dry-monitor-0.3.1 vs lib/dry/monitor/rack/middleware.rb in dry-monitor-0.3.2

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require 'dry/monitor/notifications' +require "dry/monitor/notifications" module Dry module Monitor module Rack class Middleware @@ -20,10 +20,10 @@ def initialize(*args) @notifications, @app = *args end - def new(app) + def new(app, *_args, &_block) self.class.new(notifications, app) end def on(event_id, &block) notifications.subscribe(:"rack.request.#{event_id}", &block)