Skip to content

Commit

Permalink
add compatibility with Redmine 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Imirato committed Apr 24, 2024
1 parent 698fef3 commit 822ec50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'sidekiq/web'
require 'redmine_sidekiq/web_constraint'
require './plugins/redmine_sidekiq/lib/redmine_sidekiq/web_constraint'

begin
require 'sidekiq/cron/web'
Expand Down
4 changes: 2 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'redmine_sidekiq/configure'
require 'redmine_sidekiq/rails'
require File.dirname(__FILE__) + '/lib/redmine_sidekiq/configure'
require File.dirname(__FILE__) + '/lib/redmine_sidekiq/rails'

Redmine::Plugin.register :redmine_sidekiq do
name 'Redmine Sidekiq plugin'
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_sidekiq/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

module RedmineSidekiq
class Configure
file = File.join(Rails.root, 'plugins/redmine_sidekiq/config/sidekiq.yml')
file = File.join(::Rails.root, 'plugins/redmine_sidekiq/config/sidekiq.yml')
if File.exist?(file)
config = YAML.load_file(file)[Rails.env]
redis_conf = config['redis'].symbolize_keys
Expand Down

0 comments on commit 822ec50

Please sign in to comment.