Project

General

Profile

Actions

Bug #32688

closed

Tracker #32684: Ruby 3.0 support

app/models/concerns/has_many_common.rb is incompatible with Ruby 3

Added by Ewoud Kohl van Wijngaarden over 3 years ago. Updated about 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

/home/ekohl/.gem/ruby/gems/activerecord-6.0.3.7/lib/active_record/associations.rb:1370:in `has_many': wrong number of arguments (given 3, expected 1..2) (ArgumentError)
    from /home/ekohl/dev/foreman/app/models/concerns/has_many_common.rb:48:in `has_many'
    from /home/ekohl/.gem/ruby/gems/audited-4.10.0/lib/audited/auditor.rb:80:in `audited'

This is because it uses *args instead of **kwargs.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #35300: Incorrect method signatures with keyword argumentsClosedEwoud Kohl van WijngaardenActions
Actions

Also available in: Atom PDF