lib/sf_connect/uploader.rb in sf_connect-0.1.1 vs lib/sf_connect/uploader.rb in sf_connect-0.2.0
- old
+ new
@@ -8,16 +8,16 @@
def upload_to_salesforce
self.class.update_salesforce_attributes(salesforce_object_id, upload_payload_for_salesforce)
end
def upload_payload_for_salesforce
- self.class.salesforce_fields.convert_to_salesforce(self)
+ self.class.salesforce_fields.payload_for_upload(self)
end
class_methods do
def upload_salesforce_record(**attributes)
create_salesforce_record(
- salesforce_fields.convert_to_salesforce_from_hash(attributes)
+ salesforce_fields.payload_for_upload_from_hash(attributes)
)
end
def create_salesforce_record(payload)
SfConnect.create!(salesforce_object_name, payload)