ASF automatically creates relationships, but when the relationships is created, the foreign object does not used the
define connection in the parent object to connection to SF.
class SfAccount < ActiveRecord::Base
establish_connection "sf_development"
end
class SfContact < ActiveRecord::Base
establish_connection "sf_development"
end
@account = SfAccount.find(someid)
@account.contacts => This does not work
When doing .contacts instead of using sf_development ASF uses the connection in development, going back to the default
connection.
In addition to use the connection defined, a mechanism is needed to ensure that if an SID is passed, that that is used
or at least we can say to use the SID instead of the defined SF connection. |