Fix ArgumentError: wrong number of arguments (given 3, expected 2)

This commit is contained in:
Ryuta Kamizono 2019-09-13 10:43:29 +09:00
parent b13c518ddf
commit d79ad3f890
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
module ActiveRecord
class AssociationRelation < Relation
def initialize(klass, association)
def initialize(klass, association, **)
super(klass)
@association = association
end

View File

@ -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