-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
26 lines (20 loc) · 882 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
# frozen_string_literal: true
loader = RedminePluginKit::Loader.new plugin_id: 'redmine_privacy_terms'
Redmine::Plugin.register :redmine_privacy_terms do
name 'Privacy & Terms'
url 'https://github.com/alphanodes/redmine_privacy_terms'
description 'Add privacy cookie information and terms for users'
version RedminePrivacyTerms::VERSION
author 'AlphaNodes GmbH'
author_url 'https://alphanodes.com/'
requires_redmine version_or_higher: '6.0'
begin
requires_redmine_plugin :additionals, version_or_higher: '4.0.0'
rescue Redmine::PluginNotFound
raise 'Please install additionals plugin (https://github.com/alphanodes/additionals)'
end
permission :show_terms_condition, {}
settings default: loader.default_settings,
partial: 'redmine_privacy_terms/settings/settings'
end
RedminePluginKit::Loader.persisting { loader.load_model_hooks! }