The databasedotcom gem is so nice to use that I'm finding all sorts of things to do with it. One of those things involves logging into several orgs in succession, and I'm having a little bit of trouble there and hope someone has a tip for me. I find that if I authenticate to an org and materialize an SObject, say Account, that if I materialize Account again using another Databasedotcom::Client that Account still points at the first org.
The steps might be like this:
1. create Databasedotcom::Client, authenticate against org 1
2. materialize Account
3. create another client, authenticate it against org 2
4. materialize Account with client 2 ??
5. Account.first is the first account from org 1
Is there a way to deal with this using modules via sobject_module that I haven't figured out yet? Or perhaps a way to unauthenticate the client and/or rematerialize an SObject class?
Thanks
The Cobra