/comments?group_by=comment: add is_sticky/is_deleted/do_not_bump_post/order params.

This commit is contained in:
evazion
2017-01-23 20:42:48 -06:00
parent 6430a9b0a4
commit caaff24112
2 changed files with 35 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ private
end
def index_by_comment
@comments = Comment.search(params[:search]).order("comments.id DESC").paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
@comments = Comment.search(params[:search]).paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
respond_with(@comments) do |format|
format.html {render :action => "index_by_comment"}
format.xml do