From 61dc13b1db6d3a7b7769763d9cead744bb37f3d2 Mon Sep 17 00:00:00 2001 From: Dave Katten Date: Thu, 18 Oct 2012 09:28:51 -0500 Subject: [PATCH] Add Bignum to the list of classes which cannot be duped. --- lib/sidekiq/processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/processor.rb b/lib/sidekiq/processor.rb index ebf090ab..605626e5 100644 --- a/lib/sidekiq/processor.rb +++ b/lib/sidekiq/processor.rb @@ -95,7 +95,7 @@ module Sidekiq end # Singleton classes are not clonable. - SINGLETON_CLASSES = [ NilClass, TrueClass, FalseClass, Symbol, Fixnum, Float ].freeze + SINGLETON_CLASSES = [ NilClass, TrueClass, FalseClass, Symbol, Fixnum, Float, Bignum ].freeze # Clone the arguments passed to the worker so that if # the message fails, what is pushed back onto Redis hasn't