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.
2 parents 8d07cbc + 2e3101a commit a46cdf2Copy full SHA for a46cdf2
init.rb
@@ -1,3 +1,5 @@
1
+$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"
2
+
3
require 'redmine_sidekiq/configure'
4
require 'redmine_sidekiq/rails'
5
lib/redmine_sidekiq/configure.rb
@@ -7,9 +7,9 @@
7
8
module RedmineSidekiq
9
class Configure
10
- file = File.join(Rails.root, 'plugins/redmine_sidekiq/config/sidekiq.yml')
+ file = File.join(::Rails.root, 'plugins/redmine_sidekiq/config/sidekiq.yml')
11
if File.exist?(file)
12
- config = YAML.load_file(file)[Rails.env]
+ config = YAML.load_file(file)[::Rails.env]
13
redis_conf = config['redis'].symbolize_keys
14
end
15
0 commit comments