-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinit.rb
40 lines (27 loc) · 1.32 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
# encoding: utf-8
require 'redmine'
require 'dispatcher'
Dispatcher.to_prepare :redmine_project_filtering do
require_dependency 'redmine_project_filtering'
require_dependency 'redmine_project_filtering/with_custom_values'
require_dependency 'projects_helper'
ProjectsHelper.send(:include, RedmineProjectFiltering::Patches::ProjectsHelperPatch)
require_dependency 'custom_field'
CustomField.send(:include, RedmineProjectFiltering::Patches::CustomFieldPatch)
require_dependency 'project'
Project.send(:include, RedmineProjectFiltering::Patches::ProjectPatch)
require_dependency 'projects_controller'
ProjectsController.send(:include, RedmineProjectFiltering::Patches::ProjectsControllerPatch)
require_dependency 'settings_controller'
SettingsController.send(:include, RedmineProjectFiltering::Patches::SettingsControllerPatch)
end
# will not work on development mode
Redmine::Plugin.register :redmine_project_filtering do
name 'Redmine Project filtering plugin'
author 'Enrique García Cota, Francisco de Juan'
url 'https://github.com/splendeo/redmine_project_filtering'
author_url 'http://www.splendeo.es'
description 'Adds filtering capabilities to the the project/index page'
version '0.9.6'
settings :default => {'used_fields' => {}}, :partial => 'settings/redmine_project_filtering'
end