forked from agileware-jp/redmine_work_days
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
30 lines (24 loc) · 932 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
27
28
29
30
# -*- coding: utf-8 -*-
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"
require 'redmine'
require 'redmine_utils_date_calculation_patch'
require 'redmine_work_days/hooks'
#ActionDispatch::Callbacks.to_prepare do
#ActiveSupport::Reloader.to_prepare do
Rails.application.config.after_initialize do
require_dependency 'redmine/utils'
unless Redmine::Utils::DateCalculation.included_modules.include?(RedmineUtilsDateCalculationPatch)
Redmine::Utils::DateCalculation.send :include, RedmineUtilsDateCalculationPatch
end
end
Redmine::Plugin.register :redmine_work_days do
name 'Redmine Work Days'
author 'Agileware Inc.'
description 'This plugin enables to set the holidays.'
version '1.3.0'
author_url 'http://agileware.jp'
menu :admin_menu, :rest_days,
{ :controller => 'rest_days', :action => 'index' },
:caption => :rest_days,
:html => { :class => 'icon icon-redmine-work-days'}
end