-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
30 lines (22 loc) · 805 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
28
29
30
require 'redmine'
Rails.application.config.to_prepare do
require_dependency 'issue'
require_dependency 'issue_patch'
unless Issue.included_modules.include? RedmineRegexpReplace
Issue.send(:include, RedmineRegexpReplace)
end
require_dependency 'journal'
unless Journal.included_modules.include? RedmineRegexpReplace
Journal.send(:include, RedmineRegexpReplace)
end
end
Redmine::Plugin.register :redmine_regexp_replace do
name 'Redmine Regexp Replace plugin'
author 'Daiju Kito'
description 'Regexp Replace plugin for Redmine. Replace issue descriptions and journal entries when commiting.'
version '0.0.1'
settings :default => {},
:partial => 'regexp_replace/settings'
url 'http://example.com/path/to/plugin'
author_url 'http://example.com/about'
end