fhsav / clock

The clock for Farmington High School.
http://fhsclock.com
Other
12 stars 2 forks source link

Automatically number periods #207

Closed ethnt closed 12 years ago

ethnt commented 12 years ago

We need to use association callbacks in order to;

  1. See if the number field is empty.
  2. If it is, get the number of periods in parent.
  3. Set number to that number, incremented by one.

All of this should be within a callback in the Period model