Sha256: a51b448efb4d613e73333d843b9a1695ca902787d883c9299429127925dfc3c5

Contents?: true

Size: 412 Bytes

Versions: 7

Compression:

Stored size: 412 Bytes

Contents

require "dry/web/roda/application"
require_relative "container"

module <%= config[:camel_cased_app_name] %>
  class Application < Dry::Web::Roda::Application
    configure do |config|
      config.container = Container
    end

    route do |r|
      r.run ::Main::Application.freeze.app
    end

    error do |e|
      self.class[:rack_monitor].instrument(:error, exception: e)
      raise e
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dry-web-roda-0.8.0 lib/dry/web/roda/templates/umbrella_project/application.rb.tt
dry-web-roda-0.7.5 lib/dry/web/roda/templates/umbrella_project/application.rb.tt
dry-web-roda-0.7.4 lib/dry/web/roda/templates/umbrella_project/application.rb.tt
dry-web-roda-0.7.3 lib/dry/web/roda/templates/umbrella_project/application.rb.tt
dry-web-roda-0.7.2 lib/dry/web/roda/templates/umbrella_project/application.rb.tt
dry-web-roda-0.7.1 lib/dry/web/roda/templates/umbrella_project/application.rb.tt
dry-web-roda-0.7.0 lib/dry/web/roda/templates/umbrella_project/application.rb.tt