From 9652cf78c3c3c781c604700ea4107d2d3427dcea Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 25 Sep 2024 17:37:11 +0200 Subject: [PATCH] add default_sorted_column --- app/models/concerns/columns_concern.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/concerns/columns_concern.rb b/app/models/concerns/columns_concern.rb index ea88cb73a..caac5bc74 100644 --- a/app/models/concerns/columns_concern.rb +++ b/app/models/concerns/columns_concern.rb @@ -57,6 +57,10 @@ module ColumnsConcern columns end + def default_sorted_column + SortedColumn.new(column: notifications_column, order: 'desc') + end + private def standard_columns