lib/meibo/classroom.rb in meibo-0.13.0 vs lib/meibo/classroom.rb in meibo-0.14.0
- old
+ new
@@ -81,7 +81,11 @@
end
def terms
term_sourced_ids.map {|term_sourced_id| Meibo.current_roster.academic_sessions.find(term_sourced_id) }
end
+
+ def enrollments
+ Meibo.current_roster.enrollments.where(class_sourced_id: sourced_id)
+ end
end
end