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={})
|
def initialize(performable, target, options={})
|
||||||
@performable = performable
|
@performable = performable
|
||||||
@target = target
|
@target = target
|
||||||
@opts = performable.stringify_keys(options)
|
@opts = options
|
||||||
end
|
end
|
||||||
|
|
||||||
def method_missing(name, *args)
|
def method_missing(name, *args)
|
||||||
|
|
|
@ -68,8 +68,8 @@ module Sidekiq
|
||||||
hash
|
hash
|
||||||
end
|
end
|
||||||
|
|
||||||
def client_push(*args) # :nodoc:
|
def client_push(item) # :nodoc:
|
||||||
Sidekiq::Client.push(*args)
|
Sidekiq::Client.push(stringify_keys(item))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue