app/controllers/championships_controller.rb
# Prepares the data for the CSI championship rankings and stores the result into
# dedicated member variables.
#
Prepares the data for the CSI championship rankings and stores the result into
dedicated member variables.
Prepares the data for the CSI championship rankings and stores the result into dedicated member variables .
def prepare_csi_champioship_individual_rankings
    @title = I18n.t('championships.individual_rank') + ' ' + @season_type.get_full_name
    @category_types = @season.category_types.are_not_relays.is_divided.sort_by_age
    case @season.id
    when 141 
      @individual_ranking = BalancedIndividualRankingDAO.new( @season )
    when 151 
      @individual_ranking = EnhanceIndividualRankingDAO.new( @season )
    else 
      @individual_ranking = EnhanceIndividualRankingDAO.new( @season )
    end
  end
def prepare_csi_champioship_individual_rankings @title = I18n . t ( 'championships.individual_rank' ) + ' ' + @season_type . get_full_name @category_types = @season . category_types . are_not_relays . is_divided . sort_by_age case @season . id when 141 @individual_ranking = BalancedIndividualRankingDAO . new ( @season ) when 151 @individual_ranking = EnhanceIndividualRankingDAO . new ( @season ) else @individual_ranking = EnhanceIndividualRankingDAO . new ( @season ) end end
Prepares the data for the CSI championship rankings and stores the result into
dedicated member variables.
Prepares the data for the CSI championship rankings and stores the result into dedicated member variables .
# Decides what kind of calculation for the season # TODO store it on DB using calculation formulas # CSI 2014/2015 # Balanced individual ranking # CSI 2015/2016 # Enhance individual ranking # 161.. and over (CSI 2016/2017, ...) # Enhance individual ranking