From 1b4ce7bcc425a3ce1dece886bb688c489d123b28 Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Wed, 15 May 2024 14:16:38 +0000 Subject: [PATCH] Fixes #37468 - Support Zeitwerk loader --- app/controllers/ui_template_syncs_controller.rb | 2 +- lib/foreman_templates/engine.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ui_template_syncs_controller.rb b/app/controllers/ui_template_syncs_controller.rb index 9c922341..f88b9565 100644 --- a/app/controllers/ui_template_syncs_controller.rb +++ b/app/controllers/ui_template_syncs_controller.rb @@ -1,6 +1,6 @@ require 'ostruct' -class UiTemplateSyncsController < ApplicationController +class UITemplateSyncsController < ApplicationController include ::Foreman::Controller::Parameters::TemplateParams rescue_from ::ForemanTemplates::PathAccessException do |error| diff --git a/lib/foreman_templates/engine.rb b/lib/foreman_templates/engine.rb index cfedcbec..bdf0ab62 100644 --- a/lib/foreman_templates/engine.rb +++ b/lib/foreman_templates/engine.rb @@ -24,7 +24,7 @@ class Engine < ::Rails::Engine initializer 'foreman_templates.register_plugin', :before => :finisher_hook do Foreman::Plugin.register :foreman_templates do - requires_foreman '>= 3.7' + requires_foreman '>= 3.13' register_gettext apipie_documented_controllers ["#{ForemanTemplates::Engine.root}/app/controllers/api/v2/*.rb"]