From 88f0a8ed24de9a306ab9e82050da3fe7cb5a2ba0 Mon Sep 17 00:00:00 2001 From: ArturAguiar Date: Sun, 27 Oct 2013 21:59:05 -0400 Subject: [PATCH] Working on issue #17. --- app/controllers/home_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 8f9757f..beb33c2 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -7,10 +7,11 @@ class HomeController < FriendlyUrlController def index @organization_list = Organization.all.map { |o| [o.display_name, o.id] } - # I want Term => Courses + # use this method to make sure list is accurate (and not an outdated cache). + CourseOffering.uncached do + @user_offerings = current_user.course_offerings + end - - @user_offerings = current_user.course_offerings @current_user_courses = {} @user_offerings.each do |offering|