app/models/studentdb/course.rb
# Returns true if the Student is enrolled in the course. By default, this includes extra_enrollees, but you can include only
# officially-enrolled students by specifying +false+ for the :include_extra_enrollees option.
Returns true if the Student is enrolled in the course. By default, this includes extra_enrollees, but you can include only
officially-enrolled students by specifying +false+ for the :include_extra_enrollees option.
Returns true if the Student is enrolled in the course . By default this includes extra_enrollees but you can include only officially - enrolled students by specifying + false + for the : include_extra_enrollees option .
def enrolls?(student, options = {})
    options = {:include_extra_enrollees => true}.merge(options)
    return true if !StudentRegistrationCourse.find(:all, 
                                        :conditions => ["regis_yr = ? AND regis_qtr = ? AND sln = ? AND system_key = ? AND
                                        (request_status = 'A' OR request_status = 'C' OR request_status = 'R')",
                                        ts_year, ts_quarter, sln, student.system_key]).empty?
    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 ) return true if ! StudentRegistrationCourse . find ( :all , :conditions => [ "regis_yr = ? AND regis_qtr = ? AND sln = ? AND system_key = ? AND
                                        (request_status = 'A' OR request_status = 'C' OR request_status = 'R')" , ts_year , ts_quarter , sln , student . system_key ] ) . empty? return true if options [ :include_extra_enrollees ] == true && extra_enrollees . include? ( student ) false end
Returns true if the Student is enrolled in the course.
Returns true if the Student is enrolled in the course .
student
options