app/strategies/relay_swimmers_combiner.rb
# Check out swimmer's suggested times for all relay phases
#
Check out swimmer's suggested times for all relay phases
Check out swimmer ' s suggested times for all relay phases
def load_phases_suggested_times( swimmer_id )
    swimmer        = Swimmer.find( swimmer_id )
    badge          = swimmer.badges.where( season_id: @meeting.season_id ).first
    swimmer_phases = []
    @relay_phases.each_with_index do |phase,index|
      swimmer_phases << find_suggested_time( swimmer, badge, use_default = phase[1], index )
    end
    swimmer_phases
  end
def load_phases_suggested_times ( swimmer_id ) swimmer = Swimmer . find ( swimmer_id ) badge = swimmer . badges . where ( season_id : @meeting . season_id ) . first swimmer_phases = [ ] @relay_phases . each_with_index do | phase , index | swimmer_phases << find_suggested_time ( swimmer , badge , use_default = phase [ 1 ] , index ) end swimmer_phases end
Check out swimmer's suggested times for all relay phases
Check out swimmer ' s suggested times for all relay phases
# Cicle all relay phases
swimmer_id
<not_specific>