module Concerns::Competition::Names

Public Instance Methods

default_name() click to toggle source
# File app/models/competitions/concerns/competition/names.rb, line 8
def default_name
  name
end
friendly_name() click to toggle source
# File app/models/competitions/concerns/competition/names.rb, line 12
def friendly_name
  "Competition"
end
name() click to toggle source
# File app/models/competitions/concerns/competition/names.rb, line 4
def name
  self[:name] ||= "#{self.date.year} #{friendly_name}"
end