app/models/service_learning/service_learning_course.rb
def enrolls?(student, options = {})
    options = {:include_extra_enrollees => true}.merge(options)
    courses.each do |c|
      return true if c.course.enrolls?(student, options)
    end
    return true if options[:include_extra_enrollees] == true && extra_enrollees.include?(student)
    false
  end
# Returns true if this course includes the specified Student in the roster.
Returns true if this course includes the specified Student in the roster.
Returns true if this course includes the specified Student in the roster .
def enrolls?(student, options = {})
    options = {:include_extra_enrollees => true}.merge(options)
    courses.each do |c|
      return true if c.course.enrolls?(student, options)
    end
    return true if options[:include_extra_enrollees] == true && extra_enrollees.include?(student)
    false
  end
def enrolls? ( student , options = { } ) options = { :include_extra_enrollees => true } . merge ( options ) courses . each do | c | return true if c . course . enrolls? ( student , options ) end return true if options [ :include_extra_enrollees ] == true && extra_enrollees . include? ( student ) false end
Returns true if this course includes the specified Student in the roster.
Returns true if this course includes the specified Student in the roster .
student
options