From 261e51b0caca4e1dfa08f9a398df407933fd9650 Mon Sep 17 00:00:00 2001 From: Tatsuhiko Miyagawa Date: Wed, 2 Jul 2014 19:32:40 -0700 Subject: Explicitly call #to_s when serializing GlobalID. Addresses #95 --- lib/active_job/arguments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_job') diff --git a/lib/active_job/arguments.rb b/lib/active_job/arguments.rb index ba314ccf14..ef6a3fce1d 100644 --- a/lib/active_job/arguments.rb +++ b/lib/active_job/arguments.rb @@ -17,7 +17,7 @@ module ActiveJob def self.serialize_argument(argument) case argument when ActiveModel::GlobalIdentification - argument.global_id + argument.global_id.to_s when *TYPE_WHITELIST argument when Array -- cgit v1.2.3