lib/meibo/course.rb in meibo-0.12.0 vs lib/meibo/course.rb in meibo-0.13.0
- old
+ new
@@ -39,7 +39,15 @@
@org_sourced_id = org_sourced_id
@subjects = subjects
@subject_codes = subject_codes
@extension_fields = extension_fields
end
+
+ def organization
+ Meibo.current_roster.organizations.find(org_sourced_id)
+ end
+
+ def school_year
+ Meibo.current_roster.academic_sessions.find(school_year_sourced_id)
+ end
end
end