Change param asc to ascending

For consistency, change param asc to ascending:

https://meta.discourse.org/t/make-admin-users-list-sortable-suggestion/47649/17?u=oblakeerickson
This commit is contained in:
Blake Erickson
2017-02-25 09:13:31 -07:00
parent 0a41da6bad
commit e9d5c3265c
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ class AdminUserIndexQuery
end
def custom_direction
asc = params[:asc]
asc = params[:ascending]
asc.present? && asc ? "ASC" : "DESC"
end