fhsav / clock

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

Move automatic numbering of periods to model #208

Closed ethnt closed 11 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

ethnt commented 11 years ago

Merged in with 028b23fc5b686792d218287fb37242c36ca8ab3c.