Currently HashWithIndifferentAccess stores using string keys, and any symbols passed in get converted to strings. As I understand it, this was due to the fact that in earlier versions of Ruby, symbols would not get garbage collected and would thus stick around for the lifetime of the process.
With Rails 5, and its minimum version requirement of Ruby 2.2.1, I don't believe this to be an issue anymore, and symbols perform better as Hash keys. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
