-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.rb
23 lines (19 loc) · 840 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
require File.expand_path('../lib/redmine_decision_tree/view_hooks', __FILE__)
require File.expand_path('../lib/redmine_decision_tree/field_format_patch', __FILE__) # intentionally breaking auto-reloading of the patch to avoid chaining of the added link on reloads
Redmine::Plugin.register :redmine_decision_tree do
name 'Redmine Decision Tree plugin'
author 'Jens Krämer, Georepublic'
author_url 'https://github.com/georepublic'
url 'https://github.com/gtt-project/redmine_decision_tree'
description 'Adds decision-tree wizards to custom fields'
version '2.0.0'
requires_redmine version_or_higher: '4.0.0'
end
if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
RedmineDecisionTree.setup
else
require 'redmine_decision_tree'
ActiveSupport::Reloader.to_prepare do
RedmineDecisionTree.setup
end
end