mirror of https://github.com/rails/rails
Fix ArgumentError: wrong number of arguments (given 3, expected 2)
This commit is contained in:
parent
b13c518ddf
commit
d79ad3f890
|
@ -2,7 +2,7 @@
|
|||
|
||||
module ActiveRecord
|
||||
class AssociationRelation < Relation
|
||||
def initialize(klass, association)
|
||||
def initialize(klass, association, **)
|
||||
super(klass)
|
||||
@association = association
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ module ActiveRecord
|
|||
# is computed directly through SQL and does not trigger by itself the
|
||||
# instantiation of the actual post records.
|
||||
class CollectionProxy < Relation
|
||||
def initialize(klass, association) #:nodoc:
|
||||
def initialize(klass, association, **) #:nodoc:
|
||||
@association = association
|
||||
super klass
|
||||
|
||||
|
|
Loading…
Reference in New Issue