Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lesson descriptions loaded from the database
* TimetabledLesson#description is now implemented and (using planted data) tested. * LessonDescription.find_by_schoolday_and_lesson * DataMapper::Property::SchoolDay implemented to map SchoolDay objects to strings in the database. * Command::EnterLesson -> DescribeLesson (and implemented) * At commandline, can run "sr 10 ..." instead of "sr enter 10 ..." * At commandline, dates can be specified: "sr 10 yesterday ..." * (Note: commandline code not tested yet, even interactively.) * Database.current (to support LessonDescription; general use not encouraged). * Database#schoolday!(str) -- raises error if not a schoolday.
- Loading branch information