molten-trunk/molten5_withgrid/lib/acts_as_syncable.rb
def sync(options = {})
            write_inheritable_attribute(:sync_options, {
              :with => options[:with]
            })

            class_inheritable_reader :sync_options
            
            #------------------
            # BEHAVIORS
            #------------------
            ActiveRecord::Base.set_primary_key "sf_id"

            include ActiveRecord::Acts::Syncable::InstanceMethods        
          end
# Use this method inside an ActiveRecord class to add this module's behaviors. 
# Options:
#    - :with => Name of the native Salesforce class that this class is synced with. 
#               Ex: sync :with => Contact
#               Syncs this class with the +Contact+ class.
#
# If +:with+ is provided, the instance method #update_attribute_and_sync(attribute,value)
# is added to this class. Use this method to update both the local database and the 
# Salesforce database.
Use this method inside an ActiveRecord class to add this module's behaviors.
Options:
:with => Name of the native Salesforce class that this class is synced with.
Ex: sync :with => Contact
Syncs this class with the +Contact+ class.

If +:with+ is provided, the instance method #update_attribute_and_sync(attribute,value)
is added to this class. Use this method to update both the local database and the
Salesforce database.
Use this method inside an ActiveRecord class to add this module ' s behaviors . Options : : with = > Name of the native Salesforce class that this class is synced with . Ex : sync : with = > Contact Syncs this class with the + Contact + class . If + : with + is provided the instance method #update_attribute_and_sync ( attribute value ) is added to this class . Use this method to update both the local database and the Salesforce database .
def sync(options = {})
            write_inheritable_attribute(:sync_options, {
              :with => options[:with]
            })
            class_inheritable_reader :sync_options
            ActiveRecord::Base.set_primary_key "sf_id"
            include ActiveRecord::Acts::Syncable::InstanceMethods        
          end
def sync ( options = { } ) write_inheritable_attribute ( :sync_options , { :with => options [ :with ] } ) class_inheritable_reader :sync_options ActiveRecord :: Base . set_primary_key "sf_id" include ActiveRecord :: Acts :: Syncable :: InstanceMethods end
Use this method inside an ActiveRecord class to add this module's behaviors.
Use this method inside an ActiveRecord class to add this module ' s behaviors .
#------------------ # BEHAVIORS #------------------
options