Skip to content
New issue

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

#12 Rails 5.0 incompatibilities Fix #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nimir
Copy link

@nimir nimir commented Nov 22, 2016

Cause:
Debugging #12 seems when the client-side middleware is chained in server, Apartment::Tenant.current is set to base tenant overriding the correct current_tenant stored in item['apartment'].

Chaining client-side in both places is mentioned in Sidekiq docs https://github.com/mperham/sidekiq/wiki/Middleware#sometimes-client-side-middleware-should-be-registered-in-both-places but not sure why it's breaking things now in rails 5.

Fix:
Removing the server chain fixes this for me [rails5, mysql, using schema=true]

P.S
Not sure if this has some other side effects and it will require more testing.

@ACPK
Copy link

ACPK commented May 23, 2019

@nimi - Any word on why this hasn't been pushed in almost three years?

@krtschmr
Copy link

@ACPK due to conflicts :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants