lib/meibo/classroom_set.rb in meibo-0.12.0 vs lib/meibo/classroom_set.rb in meibo-0.13.0
- old
+ new
@@ -16,7 +16,15 @@
classroom.term_sourced_ids.each do |term_sourced_id|
roster.academic_sessions.find(term_sourced_id)
end
end
end
+
+ def homeroom
+ @cache[:homeroom] ||= new(select(&:homeroom?))
+ end
+
+ def scheduled
+ @cache[:scheduled] ||= new(select(&:scheduled?))
+ end
end
end