Skip to content

Commit

Permalink
Working on issue #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturAguiar committed Oct 28, 2013
1 parent fc00b69 commit 88f0a8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 88f0a8e

Please sign in to comment.