-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinit.rb
More file actions
23 lines (19 loc) · 749 Bytes
/
init.rb
File metadata and controls
23 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'redmine'
Redmine::Plugin.register :simple_author_change do
name 'Simple Author Change plugin'
author 'Dominik Staskiewicz'
description 'This is a simplest way of changing an author I can think of'
version '0.1.2'
url 'http://dapplication.com'
author_url 'http://dapplication.com'
project_module :simple_author_change do
permission :change_issue_author, {issue_authors: [:new, :autocomplete]}
end
end
require_relative 'lib/simple_author_change/project_patch'
require_relative 'lib/simple_author_change/issue_patch'
require_relative 'lib/simple_author_change/hooks'
Rails.configuration.to_prepare do
Project.send(:include, SimpleAuthorChange::ProjectPatch)
Issue.send(:include, SimpleAuthorChange::IssuePatch)
end