Skip to content

Commit

Permalink
Disambiguate between vanilla "Rails" class and "redmine_sidekiq"'s Ra…
Browse files Browse the repository at this point in the history
…ils class

This also seems to be necessary when upgrading to Rails 6.
  • Loading branch information
dosyfier committed Sep 11, 2022
1 parent 045afb6 commit 2e3101a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redmine_sidekiq/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

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]
config = YAML.load_file(file)[::Rails.env]
redis_conf = config['redis'].symbolize_keys
end

Expand Down

0 comments on commit 2e3101a

Please sign in to comment.