Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Last active August 29, 2015 14:11
Show Gist options
  • Save jmmastey/8c60d1844206fac3e9a6 to your computer and use it in GitHub Desktop.
Save jmmastey/8c60d1844206fac3e9a6 to your computer and use it in GitHub Desktop.
def create_customer_leads(posted_data)
customer_leads = []
if posted_data.is_an? Array
posted_data.each do |lead_params|
customer_leads << AcquisitionClient::CustomerLead.extract_customer_lead(lead_params)
end
else
customer_leads << AcquisitionClient::CustomerLead.extract_customer_lead(posted_data)
end
customer_leads
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment