Skip to content

Commit

Permalink
rely on where to ignore nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed May 28, 2024
1 parent 2e4fe3a commit 047306a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/queries/filters/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def default_operator
end

def apply_to(query_scope)
query_scope = query_scope.where(where) if where
query_scope = query_scope.where(where)
query_scope = query_scope.from(from) if from
query_scope = query_scope.joins(joins) if joins
query_scope = query_scope.left_outer_joins(left_outer_joins) if left_outer_joins
Expand Down

0 comments on commit 047306a

Please sign in to comment.