We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decode' for URI:Module): lib/rescued_tenant_elevator.rb:10:in
move from ruby 2.7.4 to 3.0.0
Should switch correctly to tenants
Cannot switch to tenant, problem in the generic.rb file on @app.call(env) undefined method `decode' for URI:Module)
Database: (Tell us what database and its version you use.)
Apartment version: 2.11.0
Apartment config (in config/initializers/apartment.rb or so): require 'apartment/elevators/subdomain'
config/initializers/apartment.rb
class RescuedTenantElevator < ::Apartment::Elevators::Subdomain def call(env) super rescue Apartment::TenantNotFound [302, { 'Content-Type' => 'text/hml', 'Location' => Rails.application.routes.url_helpers.root_url }, self] end
def each end end
use_schemas: (true or false)
use_schemas
true
false
Rails (or ActiveRecord) version: 6.0.4.1
Ruby version: 3.0.0
The text was updated successfully, but these errors were encountered:
https://stackoverflow.com/questions/72183528/using-ros-apartment-gem-with-ruby-3-0-0
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
move from ruby 2.7.4 to 3.0.0
Expected behavior
Should switch correctly to tenants
Actual behavior
Cannot switch to tenant, problem in the generic.rb file on @app.call(env) undefined method `decode' for URI:Module)
System configuration
Database: (Tell us what database and its version you use.)
Apartment version:
2.11.0
Apartment config (in
config/initializers/apartment.rb
or so):require 'apartment/elevators/subdomain'
class RescuedTenantElevator < ::Apartment::Elevators::Subdomain
def call(env)
super
rescue Apartment::TenantNotFound
[302, { 'Content-Type' => 'text/hml', 'Location' => Rails.application.routes.url_helpers.root_url }, self]
end
needed to work
def each
end
end
use_schemas
: (true
orfalse
)Rails (or ActiveRecord) version:
6.0.4.1
Ruby version:
3.0.0
The text was updated successfully, but these errors were encountered: