I have two classes in a Rails application. One of them Athlete, and the other - AthleteGameLog. An interesting part of this relationship is that for many years the athlete has has_manyspecimens AthleteGameLog. However, in the context of the current season, there Athleteshould be only one game magazine per year. So, one for 2013, one for 2014, etc.
When working with Ruby on Rails, is the relation has_manystill here - the right way to do this? Do I have to write scopeto get the right relationship for a particular year? Am I looking for all instances AthleteGameLog?
source
share