aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/arguments.rb
diff options
context:
space:
mode:
authorSiva Gollapalli <siva@joshsoftware.com>2015-12-03 18:45:55 +0530
committerSiva Gollapalli <siva@joshsoftware.com>2015-12-03 18:45:55 +0530
commit135258af0b9c8e76e94c0e121d5de588bae35f29 (patch)
tree71030ec474d5bcc5cc2ee290c238d983a456f901 /activejob/lib/active_job/arguments.rb
parent8299a35d25a68dd9216a0cc6bb719c8aafa2b300 (diff)
downloadrails-135258af0b9c8e76e94c0e121d5de588bae35f29.tar.gz
rails-135258af0b9c8e76e94c0e121d5de588bae35f29.tar.bz2
rails-135258af0b9c8e76e94c0e121d5de588bae35f29.zip
Added support for bigdecimals in perform later
Diffstat (limited to 'activejob/lib/active_job/arguments.rb')
-rw-r--r--activejob/lib/active_job/arguments.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb
index e56bc79328..33bd5b4eb3 100644
--- a/activejob/lib/active_job/arguments.rb
+++ b/activejob/lib/active_job/arguments.rb
@@ -25,7 +25,7 @@ module ActiveJob
# Raised when an unsupported argument type is set as a job argument. We
# currently support NilClass, Fixnum, Float, String, TrueClass, FalseClass,
- # Bignum and objects that can be represented as GlobalIDs (ex: Active Record).
+ # Bignum, BigDecimal, and objects that can be represented as GlobalIDs (ex: Active Record).
# Raised if you set the key for a Hash something else than a string or
# a symbol. Also raised when trying to serialize an object which can't be
# identified with a Global ID - such as an unpersisted Active Record model.
@@ -34,7 +34,7 @@ module ActiveJob
module Arguments
extend self
# :nodoc:
- TYPE_WHITELIST = [ NilClass, Fixnum, Float, String, TrueClass, FalseClass, Bignum ]
+ TYPE_WHITELIST = [ NilClass, Fixnum, Float, String, TrueClass, FalseClass, Bignum, BigDecimal ]
# Serializes a set of arguments. Whitelisted types are returned
# as-is. Arrays/Hashes are serialized element by element.