sinatra/sinatra-contrib — pull request #61 by dekz (2012-08-14 02:56:30+00:00)
Title: Relying on to_hash responders can break crappy classes which monkey patch arrays

Some DM-core classes like to open up Array and throw in an to_hash into it.

So a proper YAML file MIGHT end up looking horrible depending on if that DM-core had been loaded yet or not. A nice array of Hashes then gets turned into { { :key => 'value' } => nil }.

Can we not convert it to a hash if it is an Array? Do you foresee any problems with that?