forked from daipresents/redmine_task_board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
25 lines (20 loc) · 973 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
require 'redmine'
require_dependency 'scrum_alliance/redmine/issue_status_extensions'
require_dependency 'scrum_alliance/redmine/project_extensions'
# Dependency loading hell. http://www.ruby-forum.com/topic/166578#new
require 'dispatcher'
Dispatcher.to_prepare do
Project.class_eval { include ScrumAlliance::Redmine::ProjectExtensions }
IssueStatus.class_eval { include ScrumAlliance::Redmine::IssueStatusExtensions }
end
Redmine::Plugin.register :redmine_task_board do
name 'Redmine Task Board plugin'
author 'Dan Hodos'
description "Creates a drag 'n' drop task board of the items in the current version and their status"
version '1.1.0-daipresents'
project_module :task_boards do
permission :view_task_boards, :task_boards => :show
permission :update_task_boards, :task_boards => :update_status
end
menu :project_menu, :task_board, {:controller => 'task_boards', :action => 'show'}, :before => :burndown, :caption => 'Task Board'
end