forked from jbbarth/redmine_workload_calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
26 lines (24 loc) · 990 Bytes
/
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
require 'redmine'
ActionDispatch::Callbacks.to_prepare do
# Don't lose our macros on reload
require_dependency 'redmine_workload/macros'
# Patches to existing classes/modules
require_dependency 'redmine_workload/patches/version_patch'
require_dependency 'redmine_workload/patches/issue_patch'
end
Redmine::Plugin.register :redmine_workload_calendar do
name 'Redmine Workload Calendar plugin'
description 'Add ability to display a workload calendar'
url 'https://github.com/jbbarth/redmine_workload_calendar'
author 'Jean-Baptiste BARTH'
author_url 'mailto:[email protected]'
version '0.1'
requires_redmine :version_or_higher => '2.0.3'
requires_redmine_plugin :redmine_base_rspec, :version_or_higher => '0.0.3' if Rails.env.test?
settings :partial => 'settings/workload_settings',
:default => {
'display_weeks_before' => "4",
'display_weeks_after' => "16",
'show_workload' => true
}
end