app/strategies/meeting_results.rb
# Retrieve data from DB using rails model configuration
# Use one single query to decrease db access
# Force meeting_id in the query before execute
# If non current meeting set no data will be retrieved
#
Retrieve data from DB using rails model configuration
Use one single query to decrease db access
Force meeting_id in the query before execute
If non current meeting set no data will be retrieved
Retrieve data from DB using rails model configuration Use one single query to decrease db access Force meeting_id in the query before execute If non current meeting set no data will be retrieved
def retrieve_data
    @data_retrieved = nil
    @data_retrieved = @meeting.meeting_individual_results.
      includes(:meeting_event, :swimmer, :event_type, :category_type, :gender_type, :team_affiliation, meeting_event: [:heat_type]).
      to_a
  end
def retrieve_data @data_retrieved = nil @data_retrieved = @meeting . meeting_individual_results . includes ( :meeting_event , :swimmer , :event_type , :category_type , :gender_type , :team_affiliation , meeting_event : [ :heat_type ] ) . to_a end
Retrieve data from DB using rails model configuration
Use one single query to decrease db access
Force meeting_id in the query before execute
If non current meeting set no data will be retrieved
Retrieve data from DB using rails model configuration Use one single query to decrease db access Force meeting_id in the query before execute If non current meeting set no data will be retrieved