Actions
Bug #32688
closedTracker #32684: Ruby 3.0 support
app/models/concerns/has_many_common.rb is incompatible with Ruby 3
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
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.
Actions