-
Notifications
You must be signed in to change notification settings - Fork 168
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
Avoid early connection #39
Avoid early connection #39
Conversation
The code seems to make sense to me, but it breaks all the specs. can you please take a look a it? |
I could not understand the failure completely, but it appears to be related to recursive calls to connection. I have solved the problem by ensuring we only init once per Reload. |
I'm opening a new PR #50 with the changes because there has been no reply. I'll look at it and see if i can fix the issue. |
Sorry, I dropped the ball. The problem seems to be that |
We init the first time we request a connection. On code reloads, we "forget" about our init state and we call it again. After init, ensure the search path is set properly
OK, so it seems the problem was instead I was relying on an instance variable in |
Rubocop failure appears to be configuration-related. |
Thank you. Will get it merged and will start testing against our test suite, as well as out staging env |
Fixes influitive/apartment#607 in a more general way than #16