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"]