aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/table.rb')
-rw-r--r--lib/arel/table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 2aff71b220..82d160b87e 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -43,7 +43,7 @@ primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0
end
def alias name = "#{self.name}_2"
- Nodes::TableAlias.new(name, self).tap do |node|
+ Nodes::TableAlias.new(self, name).tap do |node|
@aliases << node
end
end