intridea/hashie — pull request #37 by erickrause (2012-03-05 21:59:20+00:00)
Title: Will now convert hashie objects nested within an array back to a hash wi...

...thin an array.

I ran into an issue where some middleware was taking the to_hash and trying to encode it. Because all of the nested Hashie objects weren't being converted back to Hashes, the nested Hashie objects were having .to_s being called on them, rather than the to_hash. It seems like a better idea that to_hash convert the entire object, and all nested Hashie::Mash objects back to hashes.