Class: Gaku::Course
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gaku::Course
- Includes:
- Enrollable, Gradable, Notes, Semesterable
- Defined in:
- app/models/gaku/course.rb
Instance Method Summary collapse
Methods included from Gradable
#use_primary_grading_method_set
Instance Method Details
#to_s ⇒ Object
20 21 22 23 24 25 26 |
# File 'app/models/gaku/course.rb', line 20 def to_s if syllabus_name "#{syllabus_name}-#{code}" else code end end |
#to_selectbox ⇒ Object
28 29 30 |
# File 'app/models/gaku/course.rb', line 28 def to_selectbox [to_s, id] end |