diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2014-10-24 18:46:24 -0500 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2014-10-24 18:46:24 -0500 |
commit | 2347f153b1303e32811e4aef69ddf81771b25ac5 (patch) | |
tree | 713549befd4faf76da6e9480bb8d15a927597426 /lib/arel | |
parent | b0f1aca66c83548ceeb428c91d89fd120cd5d7d2 (diff) | |
parent | 51f48f0ed9ec84fd12584b750609a2f7e945b945 (diff) | |
download | rails-2347f153b1303e32811e4aef69ddf81771b25ac5.tar.gz rails-2347f153b1303e32811e4aef69ddf81771b25ac5.tar.bz2 rails-2347f153b1303e32811e4aef69ddf81771b25ac5.zip |
Merge pull request #331 from sgrif/sg-in-should-not-break-queries
`#not_in` with a range should respect proper precedence
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/predications.rb | 2 |
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) } |