lib/meibo/enrollment.rb in meibo-0.12.0 vs lib/meibo/enrollment.rb in meibo-0.13.0
- old
+ new
@@ -59,7 +59,19 @@
end
def teacher?
role == ROLES[:teacher]
end
+
+ def classroom
+ Meibo.current_roster.classes.find(class_sourced_id)
+ end
+
+ def school
+ Meibo.current_roster.organizations.find(school_sourced_id)
+ end
+
+ def user
+ Meibo.current_roster.users.find(user_sourced_id)
+ end
end
end