Skip to content

Commit

Permalink
Keep it compatible with Redmine 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Aug 3, 2023
1 parent b188a75 commit 6fdc8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'redmine'
require_relative 'lib/redmine_sudo/hooks'

Rails.autoloaders.main.ignore("#{__dir__}/lib")
Rails.autoloaders.main.ignore("#{__dir__}/lib") if Rails::VERSION::MAJOR >= 6

# Plugin generic informations
Redmine::Plugin.register :redmine_sudo do
Expand Down

0 comments on commit 6fdc8f9

Please sign in to comment.