Skip to content

Instantly share code, notes, and snippets.

@loe
Created September 24, 2008 00:39
Show Gist options
  • Save loe/12446 to your computer and use it in GitHub Desktop.
Save loe/12446 to your computer and use it in GitHub Desktop.
if user.salesforce_information.is_a?(Hash)
lead.leadSource = user.salesforce_information[:source] if user.salesforce_information[:source]
lead.search_engine__c = user.salesforce_information[:search_engine] if user.salesforce_information[:search_engine]
lead.keyword__c = user.salesforce_information[:keyword] if user.salesforce_information[:keyword]
lead.lead_offer__c = user.salesforce_information[:offer] if user.salesforce_information[:offer]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment