Skip to content

Instantly share code, notes, and snippets.

View johncausey's full-sized avatar

John Causey johncausey

  • Halimede LLC
  • Scottsdale, AZ
View GitHub Profile
@johncausey
johncausey / gist:3038304
Created July 3, 2012 07:40
Finding a record meeting two requirements
Conversation.where("user_id = '#{current_user.id}' OR '#{user.id}' AND recipient_id = '#{current_user.id}' OR '#{user.id}'")