Class: Gaku::Enrollment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/gaku/enrollment.rb

Instance Method Summary collapse

Instance Method Details

#class_group_type?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/models/gaku/enrollment.rb', line 31

def class_group_type?
  enrollable_type == 'Gaku::ClassGroup'
end

#course_type?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'app/models/gaku/enrollment.rb', line 35

def course_type?
  enrollable_type == 'Gaku::Course'
end