Class: Gaku::Enrollment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gaku::Enrollment
- Defined in:
- app/models/gaku/enrollment.rb
Instance Method Summary collapse
Instance Method Details
#class_group_type? ⇒ Boolean
31 32 33 |
# File 'app/models/gaku/enrollment.rb', line 31 def class_group_type? enrollable_type == 'Gaku::ClassGroup' end |
#course_type? ⇒ Boolean
35 36 37 |
# File 'app/models/gaku/enrollment.rb', line 35 def course_type? enrollable_type == 'Gaku::Course' end |