Redmine 5

This commit is contained in:
Jens Kraemer
2023-11-03 14:39:57 +08:00
parent 45d15917b3
commit c496fac5e2
4 changed files with 16 additions and 22 deletions

View File

@@ -1,6 +1,15 @@
# frozen_string_literal: true
module Stopwatch
def self.setup
Stopwatch::ContextMenusControllerPatch.apply
Stopwatch::IssuesControllerPatch.apply
::TimeEntry.prepend Stopwatch::TimeEntryPatch
::User.prepend Stopwatch::UserPatch
Stopwatch::Hooks # just load it
end
def self.settings
Setting.plugin_stopwatch
end