Class Name
In: app/models/name.rb
Parent: ActiveRecord::Base

"Historical" names. "In year 2007, Team name was Safeway." People and Teams can have Names. Used on results pages. Created by Person or Team for new Result in new year and name changes from previous year. Used to handle Person name changes after marriages, as well. See Names::Nameable.

Methods

date=   to_s  

Public Instance methods

[Source]

    # File app/models/name.rb, line 13
13:   def date=(value)
14:     self.year = value.year
15:   end

[Source]

    # File app/models/name.rb, line 17
17:   def to_s
18:     "#<Name #{name} #{year} #{nameable_type} #{nameable_id}>"
19:   end

[Validate]