1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Ensure comparison between strings

I have a lot of symbols in my code and so do others. This pull request
ensure that testing queus and jobs (just like production) are only ever
compared as strings.
This commit is contained in:
Mikael Henriksson 2015-11-14 13:54:01 +01:00
parent df739ca968
commit d95f22e685

View file

@ -130,7 +130,7 @@ module Sidekiq
#
class << self
def [](queue)
jobs[queue]
jobs[queue.to_s]
end
def jobs
@ -203,7 +203,7 @@ module Sidekiq
# Queue for this worker
def queue
self.sidekiq_options["queue"]
self.sidekiq_options["queue"].to_s
end
# Jobs queued for this worker