column_table_header compute update_sort_path

This commit is contained in:
simon lehericey 2024-09-24 15:06:12 +02:00
parent b582a2afc6
commit 22cbf725ec
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
3 changed files with 17 additions and 3 deletions

View file

@ -10,6 +10,8 @@ class SortedColumn
def ascending? = @order == 'asc'
def opposite_order = ascending? ? 'desc' : 'asc'
def ==(other)
other&.column == column && other.order == order
end