1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Add Bignum to the list of classes which cannot be duped.

This commit is contained in:
Dave Katten 2012-10-18 09:28:51 -05:00
parent cbab748657
commit 61dc13b1db

View file

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