lib/active_job/arguments.rb in activejob-7.0.5.1 vs lib/active_job/arguments.rb in activejob-7.0.6

- old
+ new

@@ -110,10 +110,10 @@ SYMBOL_KEYS_KEY end result = serialize_hash(argument) result[aj_hash_key] = symbol_keys result - when -> (arg) { arg.respond_to?(:permitted?) } + when -> (arg) { arg.respond_to?(:permitted?) && arg.respond_to?(:to_h) } serialize_indifferent_hash(argument.to_h) else Serializers.serialize(argument) end end