diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/blog/posts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb index f489039..f7b6f3c 100644 --- a/app/controllers/blog/posts_controller.rb +++ b/app/controllers/blog/posts_controller.rb @@ -67,7 +67,7 @@ protected end def find_all_blog_posts - @blog_posts = BlogPost.live.paginate({ + @blog_posts = BlogPost.live.includes(:comments, :categories).paginate({ :page => params[:page], :per_page => RefinerySetting.find_or_set(:blog_posts_per_page, 10) }) |