1
0
Fork 0
forked from OpenNeo/impress

Remove old unhelpful comment in item search

I think this was to explain why `order` wasn't part of this query, and
we probably used to sort in the controller? But now the item search
module takes care of all that, this is just confusing to say now imo!
This commit is contained in:
Emi Matchu 2024-02-20 14:58:01 -08:00
parent 0705f66f6d
commit c215ebee09

View file

@ -11,8 +11,6 @@ class ItemsController < ApplicationController
else
per_page = 30
end
# Note that we sort by name by hand, since we might have to use
# fallbacks after the fact
@items = @query.results.includes(:translations).
paginate(page: params[:page], per_page: per_page)
assign_closeted!