/comments.json: default to id_desc order instead undefined order.

This commit is contained in:
evazion
2017-05-07 10:02:15 -05:00
parent b6e1958917
commit a3a9a78015
2 changed files with 7 additions and 1 deletions

View File

@@ -86,7 +86,6 @@ class Comment < ActiveRecord::Base
def search(params)
q = where("true")
return q if params.blank?
if params[:body_matches].present?
q = q.body_matches(params[:body_matches])