Skip to content

Instantly share code, notes, and snippets.

@jasondew
Created October 8, 2009 18:29
Show Gist options
  • Save jasondew/205250 to your computer and use it in GitHub Desktop.
Save jasondew/205250 to your computer and use it in GitHub Desktop.
@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