Last active
August 29, 2015 14:07
-
-
Save IanWhitney/716962ec7459583ec5be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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