From 702ef37767da7a32d34d29f8936c056d70e8fc56 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Wed, 9 Mar 2016 08:56:21 -0800 Subject: Job payload should be symmetric across JSON dump/load Placing non-native JSON data types, like symbols, in the hash to serialize means that the deserialize method will return something different from what was serialized, a common bug and source of frustration for devs. --- activejob/lib/active_job/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activejob/lib/active_job/core.rb') diff --git a/activejob/lib/active_job/core.rb b/activejob/lib/active_job/core.rb index 19b900a285..0b32b7263c 100644 --- a/activejob/lib/active_job/core.rb +++ b/activejob/lib/active_job/core.rb @@ -79,7 +79,7 @@ module ActiveJob 'queue_name' => queue_name, 'priority' => priority, 'arguments' => serialize_arguments(arguments), - 'locale' => I18n.locale + 'locale' => I18n.locale.to_s } end -- cgit v1.2.3