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:
parent
b13c518ddf
commit
d79ad3f890
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue