aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-07-13 11:19:17 +0100
committerJon Leighton <j@jonathanleighton.com>2012-07-13 11:19:17 +0100
commit1de1041c00abff9cfc57837a80e12157901ff194 (patch)
tree4012d27d584a7b93f8e41e9ade373b1de9551887 /lib
parentb5432046134e8c8aa8cafa5960b387b4befff889 (diff)
downloadrails-1de1041c00abff9cfc57837a80e12157901ff194.tar.gz
rails-1de1041c00abff9cfc57837a80e12157901ff194.tar.bz2
rails-1de1041c00abff9cfc57837a80e12157901ff194.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/nodes/table_alias.rb4
1 files changed, 4 insertions, 0 deletions
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