Skip to content

Commit

Permalink
apply direction check to base order
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed May 30, 2024
1 parent f9373c3 commit a77c4bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/queries/orders/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def available?
private

def order(scope)
scope.order(name => direction)
with_raise_on_invalid do
scope.order(name => direction)
end
end

def joins
Expand Down

0 comments on commit a77c4bc

Please sign in to comment.