-
Notifications
You must be signed in to change notification settings - Fork 159
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
After switch callback not working with nil argument #42
Comments
@jonian thank you for the feedback and nicely spotted. If we sort the sqlite3 adapter connect_to_new receiving nil we can actually just call connect_to_new(tenant) and skip the if else block as all the other adapters handle the scenario in which the tenant is nil |
rpbaltazar
added a commit
that referenced
this issue
May 5, 2020
…s responsible for reseting if needed
rpbaltazar
added a commit
that referenced
this issue
May 5, 2020
rpbaltazar
added a commit
that referenced
this issue
May 5, 2020
rpbaltazar
added a commit
that referenced
this issue
May 5, 2020
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rpbaltazar, thank you for maintaining and improving apartment. I found an issue with the
after
switch callback when passingnil
toswitch
method.Steps to reproduce
Proposed fixes
If you want, I can make a PR with the solution you prefer.
The text was updated successfully, but these errors were encountered: