Skip to content

Instantly share code, notes, and snippets.

@wnstn
Created September 14, 2012 20:08
Show Gist options
  • Save wnstn/3724395 to your computer and use it in GitHub Desktop.
Save wnstn/3724395 to your computer and use it in GitHub Desktop.
if full_name.size == 3
patient.update_attributes(first_name: full_name[0,1], last_name: full_name[2])
else
patient.update_attributes(first_name: full_name[0], last_name: full_name[1])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment