Skip to content
J. Scott Johnson edited this page Sep 1, 2017 · 2 revisions

The apartment.rb initializer, located in config/initializers, prior to Rails 5.1 used a string based class constant such as:

Rails.application.config.middleware.use 'Apartment::Elevators::Subdomain'

In Rails 5.1, this needs to be a class constant such as:

Rails.application.config.middleware.use Apartment::Elevators::Subdomain
Clone this wiki locally