From 6fdc8f9c4404b52ec505af55f9bbd4ce56a74c4d Mon Sep 17 00:00:00 2001 From: Vincent Robert Date: Thu, 3 Aug 2023 11:16:44 +0200 Subject: [PATCH] Keep it compatible with Redmine 4 --- init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 10930f4..335840c 100644 --- a/init.rb +++ b/init.rb @@ -1,7 +1,7 @@ require 'redmine' require_relative 'lib/redmine_sudo/hooks' -Rails.autoloaders.main.ignore("#{__dir__}/lib") +Rails.autoloaders.main.ignore("#{__dir__}/lib") if Rails::VERSION::MAJOR >= 6 # Plugin generic informations Redmine::Plugin.register :redmine_sudo do