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_class
          klass = sync_options[:with]
          if klass.nil?
            raise "Can't sync with a Salesforce record unless it is specified with the sync :with option."
          elsif klass.is_a? String
            klass = kloned_class.constantize
          end
          return klass
        end
def synced_class klass = sync_options [ :with ] if klass . nil? raise "Can't sync with a Salesforce record unless it is specified with the sync :with option." elsif klass . is_a? String klass = kloned_class . constantize end return klass 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 .
# only sync if a Salesforce class is provided # Turn into a Class if a String is passed