Avoid early connection#39
Avoid early connection#39rpbaltazar merged 1 commit intorails-on-services:developmentfrom bukhr:feature/avoid-early-connection
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