app/controllers/meetings_controller.rb
# Show all details regarding a single Swimmer for the whole Meeting
# === Params:
# - id: Meeting row id.
# - swimmer_id: Swimmer id.
#
Show all details regarding a single Swimmer for the whole Meeting
Params:
id: Meeting row id.
Show all details regarding a single Swimmer for the whole Meeting Params : id : Meeting row id .
def show_swimmer_results
    @individual_result_list = @meeting.meeting_individual_results.for_swimmer( @swimmer )
    unless ( @individual_result_list.size > 0 )
      flash[:error] = I18n.t(:no_result_to_show)
      redirect_to( meetings_current_path() ) and return
    end
    @max_updated_at = @individual_result_list.select( "meeting_individual_results.updated_at" ).order(:updated_at).last.updated_at.to_i
  end
def show_swimmer_results @individual_result_list = @meeting . meeting_individual_results . for_swimmer ( @swimmer ) unless ( @individual_result_list . size > 0 ) flash [ :error ] = I18n . t ( :no_result_to_show ) redirect_to ( meetings_current_path ( ) ) and return end @max_updated_at = @individual_result_list . select ( "meeting_individual_results.updated_at" ) . order ( :updated_at ) . last . updated_at . to_i end
Show all details regarding a single Swimmer for the whole Meeting
 Params:
 id: Meeting row id.
Show all details regarding a single Swimmer for the whole Meeting Params : id : Meeting row id .
#@individual_result_list = MeetingIndividualResult.includes(:meeting).where( #  [ #    'meetings.id = ? AND meeting_individual_results.swimmer_id = ?', #    @meeting.id, @swimmer.id #  ] #) # Check if this way is faster # Get a timestamp for the cache key: