diff --git a/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb b/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb index 823313fb89..720a1f67c8 100644 --- a/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb +++ b/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb @@ -37,7 +37,6 @@ class Hash case object when Hash object.transform_values! { |value| _deep_transform_values_in_object!(value, &block) } - object when Array object.map! { |e| _deep_transform_values_in_object!(e, &block) } else