molten-trunk/molten5_withgrid/lib/acts_as_syncable.rb
# Updates the +attribute+ and value of the local and does the same for associated record
# in the Salesforce database if the +sync :with+ option is provided. 
# No exceptions are raised if the connection to Salesforce can't be established.
Updates the +attribute+ and value of the local and does the same for associated record
in the Salesforce database if the +sync :with+ option is provided.
No exceptions are raised if the connection to Salesforce can't be established.
Updates the + attribute + and value of the local and does the same for associated record in the Salesforce database if the + sync : with + option is provided . No exceptions are raised if the connection to Salesforce can ' t be established .
def synced_record
          synced_class.find_by_id(attributes['sf_id'])
        rescue ActiveSalesforce::ASFError
          logger.info "Failed to grab synced record w/sf_id: #{attributes['sf_id']}"
          logger.info "Attributes: #{attributes}"
          nil
        end
def synced_record synced_class . find_by_id ( attributes [ 'sf_id' ] ) rescue ActiveSalesforce :: ASFError logger . info "Failed to grab synced record w/sf_id: #{attributes['sf_id']}" logger . info "Attributes: #{attributes}" nil end
Updates the +attribute+ and value of the local and does the same for associated record
in the Salesforce database if the +sync :with+ option is provided.
Updates the + attribute + and value of the local and does the same for associated record in the Salesforce database if the + sync : with + option is provided .
# if the id is not well-formed, generates an error