Explicitly specify order of comments, since we cannot assume MySQL ordering (which is by id).
This commit is contained in:
parent
583dd20249
commit
cd3e824bc1
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
-if post.comments.size > 3 && !comments_expanded
|
||||
= render :partial => 'comments/comment', :collection => post.last_three_comments, :locals => {:post => post}
|
||||
-else
|
||||
= render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post}
|
||||
= render :partial => 'comments/comment', :collection => post.comments.order('created_at'), :locals => {:post => post}
|
||||
|
||||
- unless commenting_disabled?(post)
|
||||
.new_comment_form_wrapper{:class => comment_form_wrapper_class(post)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue