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={})
@performable = performable
@target = target
@opts = performable.stringify_keys(options)
@opts = options
end
def method_missing(name, *args)

View file

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