aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2013-08-07 16:05:37 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2013-08-07 16:05:37 +0300
commitfaa6922bf8d71ae5c481afcbc7b2e54ec18e6930 (patch)
tree0d9c0c3cc7ed8a974a41b65be2db558f068e5f7e /app
parent4986cbfc97b0324878520c13a57538a6a48bf4f7 (diff)
downloadrefinerycms-blog-faa6922bf8d71ae5c481afcbc7b2e54ec18e6930.tar.gz
refinerycms-blog-faa6922bf8d71ae5c481afcbc7b2e54ec18e6930.tar.bz2
refinerycms-blog-faa6922bf8d71ae5c481afcbc7b2e54ec18e6930.zip
Fix N+1 query in posts for associated authors.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/refinery/blog/admin/posts_controller.rb2
1 files changed, 1 insertions, 1 deletions
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]