diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index fdc03dd..8f62722 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -83,6 +83,8 @@ class ContentViewerController < ApplicationController @page.posts end + posts = posts.includes(:parent, {:profile => [:domains, :environment]}) + #FIXME Need to run this before the pagination because this version of # will_paginate returns a will_paginate collection instead of a # relation. -- libgit2 0.21.2