module Concerns::Bar::Discipline

Public Instance Methods

disciplines_for(race) click to toggle source
# File app/models/competitions/concerns/bar/discipline.rb, line 4
def disciplines_for(race)
  case race.discipline
  when "Road"
    [ "Road", "Circuit" ]
  when "Mountain Bike"
    [ "Mountain Bike", "Downhill", "Super D" ]
  else
    [ race.discipline ]
  end
end