From a2fff4a5cfdedab3f78e07e9705fbdf382f34a10 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 29 Jul 2026 11:29:07 -0400 Subject: [PATCH] Disabled contex menu patch & bumped required version --- init.rb | 6 ++---- lib/stopwatch.rb | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/init.rb b/init.rb index eb10446..8bd524d 100644 --- a/init.rb +++ b/init.rb @@ -5,7 +5,7 @@ Redmine::Plugin.register :stopwatch do description "Start/stop timer and quick access to today's time bookings for Redmine" version '1.1.0' - requires_redmine version_or_higher: '6.0.0' + requires_redmine version_or_higher: '7.0.0' settings default: { 'default_activity' => 'always_ask', }, partial: 'stopwatch/settings' @@ -18,6 +18,4 @@ Redmine::Plugin.register :stopwatch do if: ->(*_){ User.current.logged? and User.current.allowed_to?(:log_time, nil, global: true) } end -Rails.application.config.to_prepare do - Stopwatch.setup -end +Stopwatch.setup \ No newline at end of file diff --git a/lib/stopwatch.rb b/lib/stopwatch.rb index 0fc3faf..3c02c9e 100644 --- a/lib/stopwatch.rb +++ b/lib/stopwatch.rb @@ -2,7 +2,8 @@ module Stopwatch def self.setup - Stopwatch::ContextMenusControllerPatch.apply + log "Setup" + #Stopwatch::ContextMenusControllerPatch.apply Stopwatch::IssuesControllerPatch.apply ::TimeEntry.prepend Stopwatch::TimeEntryPatch ::User.prepend Stopwatch::UserPatch