module Admin::RacesHelper

Public Instance Methods

competition_category_name(race) click to toggle source

BAR category or Rider Rankings category

# File app/helpers/admin/races_helper.rb, line 18
def competition_category_name(race)
  if race && race.category
    if race.category.parent
      return race.category.parent.name
    else
      return race.category.name
    end
  end
  ""
end