forked from edavis10/redmine_context_menu_relations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
27 lines (21 loc) · 881 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
27
require 'redmine'
# Patches to the Redmine core.
require 'dispatcher'
Dispatcher.to_prepare :redmine_context_menu_relations do
require_dependency 'query'
require_dependency 'queries_helper'
unless QueriesHelper.included_modules.include? ContextMenuRelations::Patches::QueryPatch
Query.send(:include, ContextMenuRelations::Patches::QueryPatch)
end
unless QueriesHelper.included_modules.include? ContextMenuRelations::Patches::QueryHelperPatch
QueriesHelper.send(:include, ContextMenuRelations::Patches::QueryHelperPatch)
end
end
require 'context_menu_relations/hooks/issue_hooks'
Redmine::Plugin.register :redmine_context_menu_relations do
name 'Redmine Context Menu Relations plugin'
author 'Author name'
description 'This is a plugin for Redmine'
version '0.0.1'
permission :relate_multiple_issues, { :multiple_issue_relations => [:new]}
end