mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Move stringify_keys to client_push
This commit is contained in:
parent
aa31d616d2
commit
fe00509435
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ module Sidekiq
|
|||
def initialize(performable, target, options={})
|
||||
@performable = performable
|
||||
@target = target
|
||||
@opts = performable.stringify_keys(options)
|
||||
@opts = options
|
||||
end
|
||||
|
||||
def method_missing(name, *args)
|
||||
|
|
|
@ -68,8 +68,8 @@ module Sidekiq
|
|||
hash
|
||||
end
|
||||
|
||||
def client_push(*args) # :nodoc:
|
||||
Sidekiq::Client.push(*args)
|
||||
def client_push(item) # :nodoc:
|
||||
Sidekiq::Client.push(stringify_keys(item))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue