Commit ae2c7ab3d59c74540d10b2d58b46f59a86c3343c
1 parent
3b1f8018
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Include relation models in comment children
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> | ... | ... |