From 875951a1951881549c4ce4581c770c864fcb747a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 29 Aug 2023 11:49:56 +0200 Subject: [PATCH] Redmine 5 comptibility Redmine 5 uses Zeitwerk, which can't find the require if it's not relative. Fixes: #88 --- init.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.rb b/init.rb index c7cd68c..fd26fb3 100644 --- a/init.rb +++ b/init.rb @@ -1,7 +1,7 @@ require 'redmine' -require_dependency 'patches/attachments_patch' -require_dependency 'hooks/view_layouts_base_html_head_hook' +require_relative 'lib/patches/attachments_patch' +require_relative 'lib/hooks/view_layouts_base_html_head_hook' Redmine::Plugin.register :redmine_lightbox2 do name 'Redmine Lightbox 2'