| Path: | app/models/event.rb |
| Last Update: | Wed Feb 23 08:42:09 -0800 2011 |
Superclass for anything that can have results:
Examples: Alpenrose Challenge Morning Session, Alpenrose Challenge Afternoon Session)
instructional: class or clinc practice: training session
Events have four similar, but distinct relationships to other Events:
A purer children association would return all child Events and Competitions
(that's how they are in the database). But we almost always want just the child Events, and not the Competitions.
Changes to parent Event‘s attributes are propogated to children, unless the children‘s attributes are already different. See PROPOGATED_ATTRIBUTES
It‘s debatable whether we need STI subclasses or not.
All notification code just supports combined TT results, and should be moved to background processing