We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72e38ca commit a8b8edaCopy full SHA for a8b8eda
lib/motor/api_query/sort.rb
@@ -45,9 +45,7 @@ def build_arel_order(model, param)
45
46
arel_column = reflection_model.arel_table[field]
47
48
- arel_direction = direction.present? ? arel_column.desc : arel_column.asc
49
-
50
- maybe_add_null_last(model, arel_direction)
+ direction.present? ? arel_column.desc : maybe_add_null_last(model, arel_column.asc)
51
end
52
53
lib/motor/version.rb
@@ -1,5 +1,5 @@
1
# frozen_string_literal: true
2
3
module Motor
4
- VERSION = '0.4.36'
+ VERSION = '0.4.37'
5
0 commit comments