Merge pull request #3034 from evazion/fix-comment-order
Fix /comments.json returning results in undefined order.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user