scottwillson/racing_on_rails

View on GitHub
app/models/competitions/oregon_tt_cup.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method categories_for has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def categories_for(race)
      ids = [race.category] + race.category.descendants

      case race.category.name
      when "Senior Men Pro/1/2"
Severity: Minor
Found in app/models/competitions/oregon_tt_cup.rb - About 1 hr to fix

    Method category_names has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def category_names
          [
            "Category 3 Men",
            "Category 3 Women",
            "Category 4/5 Men",
    Severity: Minor
    Found in app/models/competitions/oregon_tt_cup.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status