From 849d10c7c2b0054e6c668c3011ba0977ba309721 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Fri, 25 Jul 2014 17:21:15 -0300 Subject: [PATCH] Remove posts relations eager loading --- app/controllers/public/content_viewer_controller.rb | 2 -- 1 file changed, 0 insertions(+), 2 deletions(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index 0ea88a9..fdc03dd 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -83,8 +83,6 @@ class ContentViewerController < ApplicationController @page.posts end - posts = posts.includes(:parent, {:profile => [:domains, :environment]}, :author) - #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