Skip to content

Instantly share code, notes, and snippets.

@romulostorel
Created July 8, 2014 13:25
Show Gist options
  • Select an option

  • Save romulostorel/a278c97e45eb1a52c4a7 to your computer and use it in GitHub Desktop.

Select an option

Save romulostorel/a278c97e45eb1a52c4a7 to your computer and use it in GitHub Desktop.
def build_exam_students
return unless academic_classroom
PilotListEnrollmentAcademicYear.students_for_portal(academic_classroom.id).each do |student|
exam_students.build :pilot_list_enrollment_academic_year_id => student.id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment