File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ The Text Blocks Project appreciates any [contributions](https://github.com/gtt-p
37
37
38
38
## Version History
39
39
40
+ - 2.0.0 Support Redmine 5.0
41
+ - 1.2.0 Publish on GitHub
40
42
- 1.0.2 Fixes localization
41
43
- 1.0.1 Bugfix
42
44
Original file line number Diff line number Diff line change 1
- require 'redmine'
1
+ require File . expand_path ( '../lib/redmine_text_blocks/view_hooks' , __FILE__ )
2
2
3
- Rails . configuration . to_prepare do
4
- RedmineTextBlocks . setup
3
+ if Rails . version > '6.0' && Rails . autoloaders . zeitwerk_enabled?
4
+ Rails . application . config . after_initialize do
5
+ RedmineTextBlocks . setup
6
+ end
7
+ else
8
+ require 'redmine_text_blocks'
9
+ Rails . configuration . to_prepare do
10
+ RedmineTextBlocks . setup
11
+ end
5
12
end
6
13
7
14
Redmine ::Plugin . register :redmine_text_blocks do
10
17
author_url 'https://github.com/georepublic'
11
18
url 'https://github.com/gtt-project/redmine_text_blocks'
12
19
description 'Adds configurable text blocks for replying to issues'
13
- version '1.2 .0'
20
+ version '2.0 .0'
14
21
15
22
requires_redmine version_or_higher : '4.0.0'
16
23
Original file line number Diff line number Diff line change 1
- require 'redmine_text_blocks/view_hooks'
2
-
3
1
module RedmineTextBlocks
4
2
def self . setup
5
3
RedmineTextBlocks ::ProjectPatch . apply
You can’t perform that action at this time.
0 commit comments