lib/list_course_manager.rb
# Additional instructors may have been added before the course was approved.
# They will not have their names associated with the CoursesUsers, so we must
# add them now that approval has happened.
Additional instructors may have been added before the course was approved.
They will not have their names associated with the CoursesUsers, so we must
add them now that approval has happened.
Additional instructors may have been added before the course was approved . They will not have their names associated with the CoursesUsers so we must add them now that approval has happened .
def add_instructor_real_names
    @course.courses_users.where(role: CoursesUsers::Roles::INSTRUCTOR_ROLE).each do |cu|
      cu.update(real_name: cu.user.real_name) if cu.real_name.nil?
    end
  end
def add_instructor_real_names @course . courses_users . where ( role : CoursesUsers :: Roles :: INSTRUCTOR_ROLE ) . each do | cu | cu . update ( real_name : cu . user . real_name ) if cu . real_name . nil? end end
Additional instructors may have been added before the course was approved.
Additional instructors may have been added before the course was approved .