From b8d70393f4a54f4bfbf20b32a41f2fcdd15438c7 Mon Sep 17 00:00:00 2001 From: danielgrippi <danielgrippi@gmail.com> Date: Thu, 7 Jul 2011 11:14:10 -0700 Subject: [PATCH] include authors and profiles on tags show page --- app/controllers/tags_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 0088c5ba9e..5bf799cfe8 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -60,7 +60,7 @@ class TagsController < ApplicationController max_time = params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now @posts = @posts.where(StatusMessage.arel_table[:created_at].lt(max_time)) - @posts = @posts.includes(:comments, :photos).order('posts.created_at DESC').limit(15) + @posts = @posts.includes({:comments => {:author => :profile}}, :photos).order('posts.created_at DESC').limit(15) @posts = PostsFake.new(@posts) @commenting_disabled = true -- GitLab