diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2013-08-07 16:05:37 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2013-08-07 16:05:37 +0300 |
commit | faa6922bf8d71ae5c481afcbc7b2e54ec18e6930 (patch) | |
tree | 0d9c0c3cc7ed8a974a41b65be2db558f068e5f7e | |
parent | 4986cbfc97b0324878520c13a57538a6a48bf4f7 (diff) | |
download | refinerycms-blog-faa6922bf8d71ae5c481afcbc7b2e54ec18e6930.tar.gz refinerycms-blog-faa6922bf8d71ae5c481afcbc7b2e54ec18e6930.tar.bz2 refinerycms-blog-faa6922bf8d71ae5c481afcbc7b2e54ec18e6930.zip |
Fix N+1 query in posts for associated authors.
-rw-r--r-- | app/controllers/refinery/blog/admin/posts_controller.rb | 2 |
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] |