databasedotcom.yml contains: sobject_module: SFDC_Models
In my controller:
class SfdcAccountsController < ApplicationController
@account = Account.find('theresanidhere')
That works. If I change the find to:
@account = SFDC_Models::Account.find('theresanidhere')
Then it doesn't work. I get the old "uninitialized constant
But when I try this in other code that doesn't use the
databasedotcom-rails gem, I can properly use the module specification.
Does this sound right, is it a known issue?
I'm not sure what the best/safest way to handle this is. The "dumb"
way is to simply do a split on "::" and use the last piece of the
string, I guess, but I'll have to think about whether there are any
gotchas there. Anyone else have an idea?