lib/dry/web/roda/application.rb in dry-web-roda-0.5.1 vs lib/dry/web/roda/application.rb in dry-web-roda-0.6.0

- old
+ new

@@ -11,11 +11,18 @@ setting :container setting :routes plugin :multi_route plugin :flow + plugin :error_handler + def self.configure(&block) + container = super + use(container[:rack_monitor]) + container + end + def self.resolve(name) config.container[name] end def self.[](name) @@ -26,9 +33,13 @@ Dir[root.join("#{config.routes}/**/*.rb")].each { |f| require f } end def self.root config.container.config.root + end + + def notifications + self.class[:notifications] end end end end end