forked from nanego/redmine_customize_core_fields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
20 lines (19 loc) · 1.04 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Redmine::Plugin.register :redmine_customize_core_fields do
name 'Redmine Customize Core Fields plugin'
author 'Vincent ROBERT'
description 'This Redmine plugin lets you customize core fields'
version '1.0.0'
url 'https://github.com/nanego/redmine_customize_core_fields'
author_url 'https://github.com/nanego'
requires_redmine_plugin :redmine_base_rspec, :version_or_higher => '0.0.4' if Rails.env.test?
requires_redmine_plugin :redmine_base_deface, :version_or_higher => '0.0.1'
menu :admin_menu, :redmine_customize_core_fields, {:controller => 'core_fields', :action => 'index'}, :after => :custom_fields, :caption => :field_core_fields, html: {class: 'icon'}
settings :default => {'override_issue_form' => 'false',
'display_custom_fields_first' => 'true'},
:partial => 'settings/redmine_plugin_customize_core_fields'
end
# Custom patches
require_dependency 'redmine_customize_core_fields/hooks'
Rails.application.config.to_prepare do
require_dependency 'redmine_customize_core_fields/issue_patch'
end