From faa6922bf8d71ae5c481afcbc7b2e54ec18e6930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ug=CC=A7is=20Ozols?= Date: Wed, 7 Aug 2013 16:05:37 +0300 Subject: Fix N+1 query in posts for associated authors. --- app/controllers/refinery/blog/admin/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb index 6a18a1c..81bdc81 100644 --- a/app/controllers/refinery/blog/admin/posts_controller.rb +++ b/app/controllers/refinery/blog/admin/posts_controller.rb @@ -5,7 +5,7 @@ module Refinery crudify :'refinery/blog/post', :order => 'published_at DESC', - :include => [:translations] + :include => [:translations, :author] before_filter :find_all_categories, :only => [:new, :edit, :create, :update] -- cgit v1.2.3