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:46:30 -0800 |
commit | b9d2cd97888f76cf7c15fd1a7167c638950071c1 (patch) | |
tree | 49650b3c0938d5574cfb41cbad630e8b855988ff /lib/arel/predications.rb | |
parent | 6cbbbb03264bb0435cdbd589f5503baf81c67de9 (diff) | |
download | rails-b9d2cd97888f76cf7c15fd1a7167c638950071c1.tar.gz rails-b9d2cd97888f76cf7c15fd1a7167c638950071c1.tar.bz2 rails-b9d2cd97888f76cf7c15fd1a7167c638950071c1.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) |