Skip to content

Commit

Permalink
update README and add fix to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
Imirato committed Apr 25, 2024
1 parent 822ec50 commit 6d0c142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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: 1 addition & 1 deletion lib/redmine_sidekiq/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module RedmineSidekiq
class Configure
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 6d0c142

Please sign in to comment.