Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with upstream #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ It appears in the top menu.
Example of Sidekiq worker.

```
./plugins/redmine_sidekiq/workers/sandbox_worker.rb
./plugins/redmine_sidekiq/app/workers/sandbox_worker.rb
```

### Sandbox Web UI
Expand All @@ -64,7 +64,7 @@ Enqueue, click the `perform_async(*args)` of the Jobs.
Enqueue from the command line.

```
$ script/rails runner 'SandboxWorker.perform_async'
$ bin/rails runner 'SandboxWorker.perform_async'
```

## License
Expand Down
2 changes: 2 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"

require 'redmine_sidekiq/configure'
require 'redmine_sidekiq/rails'

Expand Down
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