This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Description
Hi there, me again.
As part of the upgrade process, I noticed that my "mounted apps" using Sinatra are now broken.
A common example would be Sidekiq::Web (a web interface for your sidekiq queue).
It is mounted in the routes file like:
require 'sidekiq/web'
mount Sidekiq::Web => '/sidekiq'
And the error that you get when visiting that page is:
NoMethodError at /sidekiq/
undefined method `endpoint=' for nil:NilClass
file: sinatra.rb location: block in dispatch! line: 13
Here's the backtrace if it helps:

I assume the problem is that I'm only using the Rails initialization steps, but I'll also need to somehow include the Rack steps for these mounted Rack apps.
Any idea on how that can be done?