diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-22 14:08:27 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-22 14:08:27 -0800 |
commit | f574327f19f717a66b327ebffd8ef0fdb3967fdc (patch) | |
tree | c39a6caf38d48c1ac9e8e81bdc2d9a9529760699 /lib | |
parent | 74caeaad157e79853b9c6804f561d3c70eea2346 (diff) | |
download | rails-f574327f19f717a66b327ebffd8ef0fdb3967fdc.tar.gz rails-f574327f19f717a66b327ebffd8ef0fdb3967fdc.tar.bz2 rails-f574327f19f717a66b327ebffd8ef0fdb3967fdc.zip |
other should not be optional
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/select_manager.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index afc46a626e..e330e49e71 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -145,14 +145,12 @@ module Arel node_class.new self.ast, other.ast end - def intersect other = nil - node_class = Nodes::Intersect - node_class.new self.ast, other.ast + def intersect other + Nodes::Intersect.new ast, other.ast end - def except other = nil - node_class = Nodes::Except - node_class.new self.ast, other.ast + def except other + Nodes::Except.new ast, other.ast end def with *subqueries |