-
Notifications
You must be signed in to change notification settings - Fork 27
/
init.rb
36 lines (33 loc) · 1.68 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
require 'redmine'
Rails.configuration.to_prepare do
#ActiveSupport::Reloader.to_prepare do
require_dependency 'issue'
Issue.send(:prepend, RedmineWorkflowHiddenFields::IssuePatch)
require_dependency 'issue_query'
IssueQuery.send(:prepend, RedmineWorkflowHiddenFields::IssueQueryPatch)
require_dependency 'issues_helper'
IssuesHelper.send(:prepend, RedmineWorkflowHiddenFields::IssuesHelperPatch)
require_dependency 'journal'
Journal.send(:prepend, RedmineWorkflowHiddenFields::JournalPatch)
require_dependency 'project'
Project.send(:prepend, RedmineWorkflowHiddenFields::ProjectPatch)
require_dependency 'query'
Query.send(:prepend, RedmineWorkflowHiddenFields::QueryPatch)
QueryColumn.send(:prepend, RedmineWorkflowHiddenFields::QueryColumnPatch)
QueryCustomFieldColumn.send(:prepend, RedmineWorkflowHiddenFields::QueryCustomFieldColumnPatch)
require_dependency 'workflow_permission'
WorkflowPermission.send(:include, RedmineWorkflowHiddenFields::WorkflowPermissionPatch)
require_dependency 'workflows_helper'
WorkflowsHelper.send(:prepend, RedmineWorkflowHiddenFields::WorkflowsHelperPatch)
require_dependency 'redmine/export/pdf/issues_pdf_helper'
Redmine::Export::PDF::IssuesPdfHelper.send(:prepend, RedmineWorkflowHiddenFields::IssuesPdfHelperPatch)
end
Redmine::Plugin.register :redmine_workflow_hidden_fields do
requires_redmine :version_or_higher => '3.4.0'
name 'Redmine Workflow Hidden Fields plugin'
author 'Alexander Wais, David Robinson, et al.'
description "Provides a 'hidden' issue field permission for workflows"
version '0.5.0'
url 'https://github.com/alexwais/redmine_workflow_hidden_fields'
author_url 'http://www.redmine.org/issues/12005'
end