Project

General

Profile

Actions

Feature #37087

closed

Prepare STI usage to be compatible with Ruby 3.0

Added by Oleh Fedorenko 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Some of our STI models (host and subnet) have redefined initialization method signature, which cause failures in code logic due to Ruby 3.0 more strict way of dealing with keyword arguments. As a first step we must to comply with Rails' model initialization method signature. As a second step, we must review app/models/host.rb module's method_missing stub to accept keyword arguments to be able to answer and delegate different calls with different signatures. Without this, we can't migrate to Ruby 3.


Related issues 1 (0 open1 closed)

Blocks Foreman - Feature #36849: Run Foreman tests on Ruby 3.0ClosedOleh FedorenkoActions
Actions

Also available in: Atom PDF