diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 10:46:30 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 10:48:47 -0800 |
commit | 4147f4bbf8c47379e795acfe0b65d6260e23a197 (patch) | |
tree | 9029342abdbe2e6b9300d6ade40ecd902a26bc24 /lib/arel/predications.rb | |
parent | 16ee8f66bcc527406e44c28a441e8f25481c5a0d (diff) | |
download | rails-4147f4bbf8c47379e795acfe0b65d6260e23a197.tar.gz rails-4147f4bbf8c47379e795acfe0b65d6260e23a197.tar.bz2 rails-4147f4bbf8c47379e795acfe0b65d6260e23a197.zip |
refactoring where, fixing subselect
Diffstat (limited to 'lib/arel/predications.rb')
-rw-r--r-- | lib/arel/predications.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb index dec4392f0f..23e68e99f1 100644 --- a/lib/arel/predications.rb +++ b/lib/arel/predications.rb @@ -31,7 +31,7 @@ module Arel def in other case other when Arel::SelectManager - Arel::Nodes::In.new(self, other) + Arel::Nodes::In.new(self, other.ast) when Range if other.exclude_end? left = Nodes::GreaterThanOrEqual.new(self, other.begin) @@ -56,7 +56,7 @@ module Arel def not_in other case other when Arel::SelectManager - Arel::Nodes::NotIn.new(self, other) + Arel::Nodes::NotIn.new(self, other.ast) when Range if other.exclude_end? left = Nodes::LessThan.new(self, other.begin) |