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 almost 3 years ago. Updated over 1 year 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 #1

Updated by Ewoud Kohl van Wijngaarden almost 3 years ago

Actions #2

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Category set to Rails
  • Parent task set to #32684
Actions #3

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Is duplicate of Bug #35300: Incorrect method signatures with keyword arguments added
Actions #4

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Status changed from New to Duplicate

I forgot I already reported this. #35300 already has a PR.

Actions

Also available in: Atom PDF