Project

General

Profile

Bug #32688

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

Added by Ewoud Kohl van Wijngaarden 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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

Blocks Foreman - Tracker #32684: Ruby 3 supportNew

History

#1 Updated by Ewoud Kohl van Wijngaarden 4 months ago

Also available in: Atom PDF