lib/dry/system/plugins/notifications.rb in dry-system-0.9.0 vs lib/dry/system/plugins/notifications.rb in dry-system-0.9.1
- old
+ new
@@ -7,12 +7,16 @@
def self.extended(system)
system.after(:configure, &:register_notifications)
end
# @api private
+ def self.dependencies
+ 'dry/monitor/notifications'
+ end
+
+ # @api private
def register_notifications
return self if key?(:notifications)
- require 'dry/monitor/notifications' unless Object.const_defined?('Dry::Monitor::Notifications')
register(:notifications, Monitor::Notifications.new(config.name))
end
end
end
end