From 1c1b361d8c94ba8e38543f03d0a2c7a04932d386 Mon Sep 17 00:00:00 2001 From: Zach Huntington-Meath Date: Fri, 31 Jul 2026 12:49:14 -0400 Subject: [PATCH] Fix Ruby 3.3 constant lookup for HostStatus On Ruby 3.3, constant lookup inside instance_eval blocks no longer falls through to top-level scope. Qualify HostStatus with :: to ensure it resolves correctly. --- lib/foreman_omaha/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman_omaha/engine.rb b/lib/foreman_omaha/engine.rb index b8a2fd0..019b3dc 100644 --- a/lib/foreman_omaha/engine.rb +++ b/lib/foreman_omaha/engine.rb @@ -28,7 +28,7 @@ class Engine < ::Rails::Engine apipie_documented_controllers ["#{ForemanOmaha::Engine.root}/app/controllers/api/v2/*.rb"] - register_custom_status HostStatus::OmahaStatus + register_custom_status ::HostStatus::OmahaStatus # Add permissions security_block :foreman_omaha do