Commit b8304468ef6de86accdfd442c889f30b2fdd9539
Exists in
staging
and in
7 other branches
Merge branch 'fix_lazy_queries' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/comment/_comment.html.erb
| ... | ... | @@ -64,7 +64,7 @@ |
| 64 | 64 | |
| 65 | 65 | <% unless comment.replies.blank? || comment.spam? %> |
| 66 | 66 | <ul class="comment-replies"> |
| 67 | - <% comment.replies.each do |reply| %> | |
| 67 | + <% comment.replies.includes([:children, :author]).each do |reply| %> | |
| 68 | 68 | <%= render :partial => 'comment/comment', :locals => { :comment => reply } %> |
| 69 | 69 | <% end %> |
| 70 | 70 | </ul> | ... | ... |