diff options
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/nodes/table_alias.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/nodes/table_alias.rb b/lib/arel/nodes/table_alias.rb index 6ec17885fb..b32f057117 100644 --- a/lib/arel/nodes/table_alias.rb +++ b/lib/arel/nodes/table_alias.rb @@ -10,7 +10,7 @@ module Arel end def table_name - relation.name + relation.respond_to?(:name) ? relation.name : name end end end |