Skip to content

Instantly share code, notes, and snippets.

@IanWhitney
Last active August 29, 2015 14:07
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 IanWhitney/716962ec7459583ec5be to your computer and use it in GitHub Desktop.
Save IanWhitney/716962ec7459583ec5be to your computer and use it in GitHub Desktop.
@athlete = Athlete.find(4329615)
@active_progs = @athlete.future_complete_academic_program_memberships.all(:conditions => "prog_status in ('AC', 'CM')")
@old_progs = @athlete.future_complete_academic_program_memberships.all(:conditions => "prog_status not in ('AC', 'CM')", :order => "action_dt desc")
@academic_tree_paths = @athlete.future_academic_tree_paths
prog = @active_progs.first
@academic_tree_paths.detect { |tp| tp.ps_acad_prog_stdnt_car_nbr == prog.stdnt_car_nbr && tp.ps_acad_prog_acad_career == prog.acad_career}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment