lib/course_training_progress_manager.rb
# Courses before Spring 2016 used the old on-wiki training
# instead of the dashboard-based training modules.
Courses before Spring 2016 used the old on-wiki training
instead of the dashboard-based training modules.
Courses before Spring 2016 used the old on - wiki training instead of the dashboard - based training modules .
def modules_for_course
    @modules_for_course ||= blocks_with_modules_for_course
                            .pluck(:training_module_ids)
                            .flatten
                            .uniq
  end
def modules_for_course @modules_for_course ||= blocks_with_modules_for_course . pluck ( :training_module_ids ) . flatten . uniq end
Courses before Spring 2016 used the old on-wiki training
instead of the dashboard-based training modules.
Courses before Spring 2016 used the old on - wiki training instead of the dashboard - based training modules .