Skip to content

Commit

Permalink
Ignore code coverage for Arel version differences
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed Aug 11, 2024
1 parent c3594b9 commit 8426758
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pg_search/scope_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,13 @@ def conditions
.map { |feature_name, _feature_options| feature_for(feature_name).conditions }

# https://github.com/rails/rails/pull/51492
# :nocov:
if AREL_OR_NODE_ARITY == 1
Arel::Nodes::Or.new(expressions)
else
expressions.inject { |accumulator, expression| Arel::Nodes::Or.new(accumulator, expression) }
end
# :nocov:
end

def order_within_rank
Expand Down

0 comments on commit 8426758

Please sign in to comment.