diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 16:24:36 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 16:24:36 -0800 |
commit | fef5e012c90812dd9f1bb0de3e35497e106f8408 (patch) | |
tree | 049325678e77dfe1f3a5657581e27f774704b8a7 /lib | |
parent | fe35956bf7b51bc533850449bd9135cc269da2ac (diff) | |
download | rails-fef5e012c90812dd9f1bb0de3e35497e106f8408.tar.gz rails-fef5e012c90812dd9f1bb0de3e35497e106f8408.tar.bz2 rails-fef5e012c90812dd9f1bb0de3e35497e106f8408.zip |
adding factory methods to node base class
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/nodes/node.rb | 1 | ||||
-rw-r--r-- | lib/arel/nodes/table_alias.rb | 2 |
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 |