From 7f5103c3f953a08f29c84768e259c8760059da36 Mon Sep 17 00:00:00 2001 From: Matt Tanous Date: Fri, 21 Jun 2019 17:00:19 -0400 Subject: [PATCH] Add .on method to Arel::Node::TableAlias for subquery joins --- lib/arel/nodes/table_alias.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/arel/nodes/table_alias.rb diff --git a/lib/arel/nodes/table_alias.rb b/lib/arel/nodes/table_alias.rb new file mode 100644 index 0000000..62a328f --- /dev/null +++ b/lib/arel/nodes/table_alias.rb @@ -0,0 +1,6 @@ +class Arel::Nodes::TableAlias + def on(node = nil, &block) + table = BabySqueel::Table.new(self) + table.on(node, &block) + end +end