remove now unused procedure_presentation.opposite_order_for

This commit is contained in:
simon lehericey 2024-09-24 15:37:57 +02:00
parent 7349dd183a
commit 76fee12653
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -171,16 +171,6 @@ class ProcedurePresentation < ApplicationRecord
)
end
def opposite_order_for(table, column)
if sort.values_at(TABLE, COLUMN) == [table, column]
sort['order'] == 'asc' ? 'desc' : 'asc'
elsif [table, column] == ["notifications", "notifications"]
'desc' # default order for notifications
else
'asc'
end
end
def snapshot
slice(:filters, :sort, :displayed_fields)
end