forked from giddie/redmine_default_assign
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
24 lines (18 loc) · 736 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'
require 'dispatcher'
require 'default_assign_issue_patch'
require 'default_assign_project_patch'
require 'default_assign/hooks/default_assign_projects_hooks'
Dispatcher.to_prepare do
require_dependency 'project'
require_dependency 'issue'
Project.send(:include, DefaultAssignProjectPatch)
Issue.send(:include, DefaultAssignIssuePatch)
end
Redmine::Plugin.register :redmine_default_assign do
name 'Default Assign plugin'
author 'Robert Chady'
description 'Plugin implementing Douglas Campos\' ticket-482 code as a plugin. It has since been extended to offer other features as well.'
version '0.2.0'
settings :default => {'default_assignee_id' => nil}, :partial => 'settings/default_assign'
end