aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/equality.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/nodes/equality.rb b/lib/arel/nodes/equality.rb
index 11383b1d89..d778380054 100644
--- a/lib/arel/nodes/equality.rb
+++ b/lib/arel/nodes/equality.rb
@@ -7,6 +7,11 @@ module Arel
@left = left
@right = right
end
+
+ def to_sql
+ viz = Visitors::ToSql.new left.relation.engine
+ viz.accept self
+ end
end
end
end