authtrail
authtrail copied to clipboard
Use writeable DB connection when tracking
AuthTrail::Manager can be called from a GET request. In a primary+replica DB setups this will result in an error writing to the database as the read-only connection will be checked out. This PR switches to the writing role explicitly so we're sure INSERT will be possible.