aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/predications.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/predications.rb')
-rw-r--r--lib/arel/predications.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb
index 3050526a43..6f9a3c5f91 100644
--- a/lib/arel/predications.rb
+++ b/lib/arel/predications.rb
@@ -83,7 +83,7 @@ module Arel
else
right = Nodes::GreaterThan.new(self, Nodes.build_quoted(other.end, self))
end
- Nodes::Or.new left, right
+ left.or(right)
end
when Array
Nodes::NotIn.new self, other.map { |x| Nodes.build_quoted(x, self) }