Closed tetherit closed 9 years ago
There's isn't an easy way do do that. The error is triggered by GlobalID deserialization and there's no way to hook before that. I think the way to do this is using GlobalID finders
I can see how to use a custom app locator which I think I will need to do, but I cannot see a way to add the database name (or subdomain) to the global id string. Any ideas?
see my answer in GlobalID issue. Closing this as this is a GlobalID discussion
Makes sense - your solution at https://github.com/rails/globalid/issues/78 is a good one, trying it now!
Hi there,
I have multiple databases that are switched to based on subdomain in my application controller, using:
In my controller, I am running:
But I am getting the following exception, which is understandable, as I cannot see a way to let ActiveJob know which database to use:
I can see a way to specify a queue, but how do I specify a database?