1
0
Fork 0
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:
Samuel Cochran 2012-10-18 12:00:54 +08:00
parent aa31d616d2
commit fe00509435
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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