lib/meibo/course.rb in meibo-0.25.1 vs lib/meibo/course.rb in meibo-0.25.2
- old
+ new
@@ -48,10 +48,10 @@
def organization
Meibo.current_roster.organizations.find(org_sourced_id)
end
def school_year
- Meibo.current_roster.academic_sessions.find(school_year_sourced_id)
+ Meibo.current_roster.academic_sessions.find(school_year_sourced_id) if school_year_sourced_id
end
def classes
Meibo.current_roster.classes.where(course_sourced_id: sourced_id)
end