Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@client.diagnoses.include?(Diagnosis.find_by_name("HIV"))
# or, worse
@client.diagnoses.detect {|diagnosis| diagnosis.id == 42 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment