1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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