rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

ActiveRecord doesnt load multiple connection #609

Closed andersonxrilo closed 11 months ago

andersonxrilo commented 2 years ago

Hi, I was trying to work with multiple bases within the project. ActiveRecord supports this through connection pools. I'm having the problem when I try to load a secondary connection. When Jets loads the first time, it calls the settings of all connections correctly, however, when I call the Specific Model jets returns failure in the connection pool. When I do a puts to the queue after calling the model, it returns as if I had erased everything that isn't ActiveRecord::Base

Checklist

My Environment

Software Version
Operating System
Jets
Ruby

Expected Behaviour

Current Behavior

Step-by-step reproduction instructions

Code Sample

Solution Suggestion

tongueroo commented 11 months ago

Would like to see an demo project example πŸ™ Closing out to clean up issues. Feel free to reopen with a provide example to reproduce.