-
Notifications
You must be signed in to change notification settings - Fork 7
/
init.rb
24 lines (19 loc) · 896 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
require 'redmine'
Rails.logger.info 'o=>'
Rails.logger.info 'o=>Starting Redmine Datetime Custom Field plugin for Redmine'
Redmine::Plugin.register :redmine_datetime_custom_field do
name 'Redmine Datetime Custom Field plugin'
author 'Anthony LEGIRET <[email protected]>, Jérôme BATAILLE <[email protected]>'
description 'This plugin adds the DateTime type to Redmine custom fields'
url "https://github.com/Smile-SA/redmine_datetime_custom_field"
version '1.0.4'
requires_redmine :version_or_higher => '3.1.1'
end
# Custom patches
require_dependency 'hooks'
Rails.application.config.to_prepare do
require_dependency 'datetime_custom_field_application_helper_patch'
require_dependency 'datetime_custom_field_field_format_patch'
require_dependency 'datetime_custom_field_custom_fields_helper_patch'
require_dependency 'datetime_custom_field_query_patch'
end