diff options
Diffstat (limited to 'lib/arel/factory_methods.rb')
-rw-r--r-- | lib/arel/factory_methods.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/arel/factory_methods.rb b/lib/arel/factory_methods.rb index c9b6c3b791..85862c24c1 100644 --- a/lib/arel/factory_methods.rb +++ b/lib/arel/factory_methods.rb @@ -2,12 +2,12 @@ module Arel ### # Methods for creating various nodes module FactoryMethods - def create_join from, to, on = nil, klass = Nodes::InnerJoin - klass.new(from, to, on) + def create_join to, constraint = nil, klass = Nodes::InnerJoin + klass.new(to, constraint) end def create_string_join from, to - create_join from, to, nil, Nodes::StringJoin + create_join from, to, Nodes::StringJoin end def create_and clauses |