From 1de1041c00abff9cfc57837a80e12157901ff194 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 13 Jul 2012 11:19:17 +0100 Subject: Add Nodes::TableAlias#engine Eventually #engine should go away, but until that time, this means that Table and Nodes::TableAlias can be used more interchangeably. --- lib/arel/nodes/table_alias.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel/nodes') diff --git a/lib/arel/nodes/table_alias.rb b/lib/arel/nodes/table_alias.rb index b32f057117..ebfcb58e64 100644 --- a/lib/arel/nodes/table_alias.rb +++ b/lib/arel/nodes/table_alias.rb @@ -12,6 +12,10 @@ module Arel def table_name relation.respond_to?(:name) ? relation.name : name end + + def engine + relation.engine + end end end end -- cgit v1.2.3