Merge pull request #3034 from evazion/fix-comment-order

Fix /comments.json returning results in undefined order.
This commit is contained in:
Albert Yi
2017-05-10 15:21:52 -07:00
committed by GitHub
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])