aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/nodes/node.rb1
-rw-r--r--lib/arel/nodes/table_alias.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/nodes/node.rb b/lib/arel/nodes/node.rb
index ff788e90d2..711fa34b6d 100644
--- a/lib/arel/nodes/node.rb
+++ b/lib/arel/nodes/node.rb
@@ -3,6 +3,7 @@ module Arel
###
# Abstract base class for all AST nodes
class Node
+ include Arel::FactoryMethods
include Enumerable
###
diff --git a/lib/arel/nodes/table_alias.rb b/lib/arel/nodes/table_alias.rb
index 723b025883..4f4d5e29e9 100644
--- a/lib/arel/nodes/table_alias.rb
+++ b/lib/arel/nodes/table_alias.rb
@@ -6,7 +6,7 @@ module Arel
alias :table_alias :name
def [] name
- Attribute.new self, name
+ Attribute.new(self, name)
end
end
end