-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.rb
24 lines (20 loc) · 952 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_risk_management'
Redmine::Plugin.register :redmine_risk_management do
name 'Redmine Risk Management plugin'
author 'Imaginary Cloud (http://imaginarycloud.com)'
description 'Risk management plugin for Redmine'
version '0.4'
url 'https://github.com/imaginary-cloud/redmine_risk_management'
author_url 'mailto:[email protected]'
settings default: {
status: ['Identified', 'Monitored', 'Occurred', 'Dismissed']
}, partial: 'settings/risks'
project_module :risks do
permission :view_risks, { risks: [:index, :show] }, { public: true }
permission :add_risks, { risks: [:new, :create] }, { public: true }
permission :edit_risks, { risks: [:edit, :update] }, { public: true }
permission :delete_risks, { risks: :destroy }, { public: true }
end
menu :project_menu, :risks, { controller: :risks, action: :index },
caption: :label_risk_plural, before: :settings, param: :project_id
end