order comments by the most recent first

This commit is contained in:
David Gil
2015-08-11 20:27:37 +02:00
parent 9d2bece0b3
commit 44d4fa9fc4
5 changed files with 11 additions and 9 deletions

View File

@@ -22,8 +22,8 @@
</div>
<div class="comment-children">
<%= render comment.children %>
<%= render comment.children.reorder('id DESC, lft') %>
</div>
</div>
</div>
</div>