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 156e981 commit 0bcc437Copy full SHA for 0bcc437
init.rb
@@ -1,10 +1,14 @@
1
-require 'redmine'
+require File.expand_path('../lib/redmine_expo_push/hooks', __FILE__)
2
3
-require 'redmine_expo_push'
4
-require 'redmine_expo_push/hooks'
5
-
6
-Rails.configuration.to_prepare do
7
- RedmineExpoPush.setup
+if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
+ Rails.application.config.after_initialize do
+ RedmineExpoPush.setup
+ end
+else
8
+ require 'redmine_expo_push'
9
+ Rails.configuration.to_prepare do
10
11
12
end
13
14
Redmine::Plugin.register :redmine_expo_push do
0 commit comments