app/models/service_learning/service_learning_course.rb
# Returns just the count of enrollees (aka the class_size) in this class. This includes all attached course enrollees.
Returns just the count of enrollees (aka the class_size) in this class. This includes all attached course enrollees.
Returns just the count of enrollees ( aka the class_size ) in this class . This includes all attached course enrollees .
def enrollee_count
    count = 0
    courses.each do |c|
      count += c.course.all_enrollee_count
    end
    count += extra_enrollees.size
    count
  end
def enrollee_count count = 0 courses . each do | c | count += c . course . all_enrollee_count end count += extra_enrollees . size count end
Returns just the count of enrollees (aka the class_size) in this class.
Returns just the count of enrollees ( aka the class_size ) in this class .