• Catalin Irimie's avatar
    Fix DB connection check for Geo user routing · f908364d
    Catalin Irimie authored
    Overriding Geo routes should happen if the current node is a secondary.
    
    However, simply checking `connected?` on the GeoNode model won't work
    because Rails releases the DB connection before reloading routes
    in the initializing phase, resulting in the GeoNode#connected? method
    being an unreliable indicator for the DB connectivity.
    
    Changelog: fixed
    EE: true
    f908364d
geo.rb 6.41 KB