class CascadeCrossOverall

Minimum two-race requirement but … should show not apply until there are at least two races

Public Class Methods

parent_name() click to toggle source
# File app/models/competitions/cascade_cross_overall.rb, line 4
def CascadeCrossOverall.parent_name
  "Cascade Cross Series"
end

Public Instance Methods

consider_points_factor?() click to toggle source
# File app/models/competitions/cascade_cross_overall.rb, line 34
def consider_points_factor?
  false
end
consider_team_size?() click to toggle source
# File app/models/competitions/cascade_cross_overall.rb, line 30
def consider_team_size?
  false
end
create_races() click to toggle source
# File app/models/competitions/cascade_cross_overall.rb, line 8
def create_races
  races.create!(:category => Category.find_or_create_by_name("Men A"))
  races.create!(:category => Category.find_or_create_by_name("Men B"))
  races.create!(:category => Category.find_or_create_by_name("Men C"))
  races.create!(:category => Category.find_or_create_by_name("Masters Men A 40+"))
  races.create!(:category => Category.find_or_create_by_name("Masters Men B 40+"))
  races.create!(:category => Category.find_or_create_by_name("Masters Men C 40+"))
  races.create!(:category => Category.find_or_create_by_name("Junior A"))
  races.create!(:category => Category.find_or_create_by_name("Junior B"))
  races.create!(:category => Category.find_or_create_by_name("Women A"))
  races.create!(:category => Category.find_or_create_by_name("Women B"))
  races.create!(:category => Category.find_or_create_by_name("Singlespeed"))
end
minimum_events() click to toggle source
# File app/models/competitions/cascade_cross_overall.rb, line 26
def minimum_events
  2
end
point_schedule() click to toggle source
# File app/models/competitions/cascade_cross_overall.rb, line 22
def point_schedule
  [ 0, 26, 20, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 ]
end