databasedotcom.yml contains: sobject_module: SFDC_Models
In my controller:
class SfdcAccountsController < ApplicationController
include Databasedotcom::Rails::Controller
def index
@account = Account.find('theresanidhere')
end
end
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
SFDC_Models::Account" error.
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?
Thanks!
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?
Thx all.