From e4846bf4ac011ad553e6ba01e0fa5d2cc37daeb9 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 28 Jul 2026 19:17:12 -0400 Subject: [PATCH] Updated for redmine 7 --- init.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 28c09f6..eb10446 100644 --- a/init.rb +++ b/init.rb @@ -18,4 +18,6 @@ Redmine::Plugin.register :stopwatch do if: ->(*_){ User.current.logged? and User.current.allowed_to?(:log_time, nil, global: true) } end -Stopwatch.setup +Rails.application.config.to_prepare do + Stopwatch.setup +end