Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CourseInstance < ActiveRecord::Base
- belongs_to :course
- has_many :exercise_groups, :dependent => :destroy
- named_scope :active, :conditions => ['start_date < :now AND end_date > :now', {:now => Time.now} ]
- end
Add Comment
Please, Sign In to add comment