Class Section
In: app/models/section.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

returns the number of students in this section

[Source]

    # File app/models/section.rb, line 12
12:   def count_students
13:     return students.size
14:   end

Returns true when students are part of this section

[Source]

   # File app/models/section.rb, line 7
7:   def has_students?
8:     return !students.empty?  
9:   end

[Validate]