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 update_salesforce_attributes(attributes)
          begin
            synced_class.find_by_id(id).update_attributes(attributes)
          rescue SocketError
            logger.warn("Unable to connect to Salesforce and update [#{synced_class}] attributes [#{attributes}]")
          end
        end
def update_salesforce_attributes ( attributes ) begin synced_class . find_by_id ( id ) . update_attributes ( attributes ) rescue SocketError logger . warn ( "Unable to connect to Salesforce and update [#{synced_class}] attributes [#{attributes}]" ) end 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 .
attributes