Skip to content

Instantly share code, notes, and snippets.

@kineticac
Created July 12, 2011 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kineticac/1079103 to your computer and use it in GitHub Desktop.
Save kineticac/1079103 to your computer and use it in GitHub Desktop.
Connection eager loading Coaches
connections = Connection.find(:all, :conditions => ['athlete_id = ?', @athlete.id], :include => :coach)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment