Created by: connor
I wanted this functionality in a project I'm working on, so decided to submit a little PR to be considered.
Basically, in my project we want the first sort order when sorting a dashboard's column to be :desc
instead of the default (:asc
).
This PR allows you to override the default_first_sort_direction
in an application_controller
to be :desc
.
I'm relatively inexperienced with Ruby, so if there is a better way to do some of the things this does, I would love to hear ways to improve it!