column_table_header compute update_sort_path
This commit is contained in:
parent
b582a2afc6
commit
22cbf725ec
3 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue