We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e4724 commit b59ca78Copy full SHA for b59ca78
init.rb
@@ -1,7 +1,13 @@
1
-require 'redmine'
+require File.expand_path('../lib/redmine_text_blocks/view_hooks', __FILE__)
2
3
-Rails.configuration.to_prepare do
4
- RedmineTextBlocks.setup
+if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
+ Rails.application.config.after_initialize do
5
+ RedmineTextBlocks.setup
6
+ end
7
+else
8
+ Rails.configuration.to_prepare do
9
10
11
end
12
13
Redmine::Plugin.register :redmine_text_blocks do
lib/redmine_text_blocks.rb
@@ -1,5 +1,3 @@
-require 'redmine_text_blocks/view_hooks'
-
module RedmineTextBlocks
def self.setup
RedmineTextBlocks::ProjectPatch.apply
0 commit comments