Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created August 23, 2009 16:38
Show Gist options
  • Save ajsharp/173343 to your computer and use it in GitHub Desktop.
Save ajsharp/173343 to your computer and use it in GitHub Desktop.
Task.find(:all, :include => [{:assignments => :task}], :conditions => ["assignments.assignee_id = ? AND assignments.status = ?", u.id, "accepted"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment