Actually, I have an idea that will basically be an optimization of #10887.
 I'll work on it when I get home today, or perhaps at lunch if I can
squeeze it in.


On Thu, Aug 1, 2013 at 2:59 PM, Rafael Mendonça França <
notifications@github.com> wrote:

> In activesupport/lib/active_support/core_ext/hash/keys.rb:
>
> > @@ -135,4 +149,34 @@ def deep_symbolize_keys
> >    def deep_symbolize_keys!
> >      deep_transform_keys!{ |key| key.to_sym rescue key }
> >    end
> > -end
> > +
> > +  private
> > +    # Recurse through arrays and transform keys of nested hashes
> > +    def _deep_transform_nested_array(array, &block)
> > +      array.map do |item|
> > +        case item
> > +        when Hash
>
> This case statement is the same on the public and private methods. What do
> you think about extracting it for a method?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rails/rails/pull/11659/files#r5542190>
> .
>