-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specify default_sort_direction
on a resource
#3116
Add ability to specify default_sort_direction
on a resource
#3116
Conversation
I will need to update the docs when I get a chance |
Code Climate has analyzed commit 484bfc3 and detected 0 issues on this pull request. View more on Code Climate. |
FYI, these are the docs for sort column |
Co-authored-by: Paul Bob <[email protected]>
Docs added avo-hq/docs.avohq.io#274 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feature tests are breaking
@Paul-Bob ok seems to be related to the change to remove the |
@Paul-Bob so activesupport |
Why would someone set |
I imagine one would only do so to explicitly force to use the default, or in the case of it being set by some other configuration value say which may end up being |
In my opinion, setting I made this change, which resolved the test issues. Thank you for your contribution, @stevegeek! We appreciate it. |
@Paul-Bob ok! You are welcome |
Description
The ability to specify a
default_sort_column
was added recently, this PR adds the ability to also specify the direction of the sort.Checklist:
Screenshots & recording
Manual review steps
Simply add a
.default_sort_direction = :asc
to a Resource