diff options
Diffstat (limited to 'lib/arel/table.rb')
-rw-r--r-- | lib/arel/table.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb index 7811c217a7..434f19cc6b 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -30,14 +30,14 @@ module Arel nil end - def join relation + def join relation, klass = Nodes::InnerJoin sm = SelectManager.new(@engine) case relation when String, Nodes::SqlLiteral raise if relation.blank? sm.from Nodes::StringJoin.new(self, relation) else - sm.from Nodes::InnerJoin.new(self, relation, nil) + sm.from klass.new(self, relation, nil) end end |