search: remove legacy 'search[sort]' params.

Remove support for the `search[sort]` param on certain index pages. This
hasn't been used for years, and it caused the `search[order]=` param to
be added to pagination links even when the order was blank.
This commit is contained in:
evazion
2020-01-29 23:35:26 -06:00
parent edfef10dc9
commit ea45e44e10
5 changed files with 0 additions and 5 deletions

View File

@@ -11,7 +11,6 @@ class ArtistVersion < ApplicationRecord
q = q.search_attributes(params, :updater, :is_active, :is_banned, :artist_id, :name, :group_name)
params[:order] ||= params.delete(:sort)
if params[:order] == "name"
q = q.order("artist_versions.name").default_order
else