sinatra/sinatra — pull request #461 by chanks (2012-02-01 21:35:15+00:00)
Title: Indifferent param hashes nested within arrays

I found that when the params hash contained hashes nested within arrays, those hashes weren't converted to have indifferent access. I think this is worth fixing, so here's a patch which extends support for recursing through arrays of hashes as well as hashes of hashes. My first version threw errors when arrays contained any objects other than hashes, but Sinatra's test suite didn't catch it, so I added another test and revamped the indifferent_params method.

Please let me know what you think. Thanks for Sinatra!