This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
36 lines (34 loc) · 1.48 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Copyright 2012 Jochen Seeber
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
require 'redmine'
require 'redmine_timelog_extensions/i18n_patch'
require 'redmine_timelog_extensions/time_entry_patch'
require 'redmine_timelog_extensions/time_entry_hooks'
require 'redmine_timelog_extensions/issue_hooks'
Redmine::Plugin.register :redmine_timelog_extensions do
name 'timelog Extensions plugin'
author 'Jochen Seeber'
description 'Plugin for extended time logging'
version '0.0.1'
url 'https://github.com/jochenseeber/redmine_timelog_extensions'
author_url 'http://www.noussommesdesoles.net'
ActionDispatch::Reloader.to_prepare do
I18n.send(:include, RedmineTimelogExtensions::I18nPatch)
TimeEntry.send(:include, RedmineTimelogExtensions::TimeEntryPatch)
# IssuesController.send(:include, RedmineTimelogExtensions::IssuesControllerPatch)
end
end