The Tiniest Patch in the World [review request] OrderedHash should not pretend to be an Array #1782

I just submitted The Tiniest Patch in the World. This patch adds an #inspect method to ActiveSupport::OrderedHash to make the display of OrderedHashes more obvious in order to avoid confusion of them with Arrays (which their current #inspect makes them appear to resemble). Here is the patch on Lighthouse:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1782-orderedhash-should-not-pretend-to-be-an-array

And here is a pastie with some example output:

http://pastie.org/364930

Output format was developed in conversation with technoweenie on The Twitter.

Thanks, in advance,

Greg Borenstein http://urbanhonking.com/ideasfordozens

Tiniest patch? I think not!

1 char, plus tests:

http://dev.rubyonrails.org/changeset/7361

:slight_smile:

--josh