app/models/competitions/oregon_tt_cup.rb
Method categories_for
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def categories_for(race)
ids = [race.category] + race.category.descendants
case race.category.name
when "Senior Men Pro/1/2"
Method category_names
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def category_names
[
"Category 3 Men",
"Category 3 Women",
"Category 4/5 Men",