Skip to content

Commit 2e3101a

Browse files
committed
Disambiguate between vanilla "Rails" class and "redmine_sidekiq"'s Rails class
This also seems to be necessary when upgrading to Rails 6.
1 parent 045afb6 commit 2e3101a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/redmine_sidekiq/configure.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
module RedmineSidekiq
99
class Configure
10-
file = File.join(Rails.root, 'plugins/redmine_sidekiq/config/sidekiq.yml')
10+
file = File.join(::Rails.root, 'plugins/redmine_sidekiq/config/sidekiq.yml')
1111
if File.exist?(file)
12-
config = YAML.load_file(file)[Rails.env]
12+
config = YAML.load_file(file)[::Rails.env]
1313
redis_conf = config['redis'].symbolize_keys
1414
end
1515

0 commit comments

Comments
 (0)