aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/binary.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/binary.rb')
-rw-r--r--lib/arel/nodes/binary.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb
index 3cd9583e79..090468adfa 100644
--- a/lib/arel/nodes/binary.rb
+++ b/lib/arel/nodes/binary.rb
@@ -1,6 +1,6 @@
module Arel
module Nodes
- class Binary
+ class Binary < Arel::Nodes::Node
attr_accessor :left, :right
def initialize left, right
@@ -8,14 +8,6 @@ module Arel
@right = right
end
- def or right
- Nodes::Or.new self, right
- end
-
- def and right
- Nodes::And.new self, right
- end
-
# FIXME: this method should go away. I don't like people calling
# to_sql on non-head nodes. This forces us to walk the AST until we
# can find a node that has a "relation" member.