> > Ideally, it's Rails which should be renaming its class. > It's not even close to being a hash (it misses even the most basic complexity > premises). > > class OrderedHash < Array #:nodoc: > > is very telling. I also wonder why it's not defined in the ActiveSupport > namespace; some other classes are. > > And they should use Array#assoc while they're at it. > > -- > Mauricio Fernandez - http://eigenclass.org - singular Ruby You are absolutely correct. Someone needed to override Hash with just a few methods and named the class OrderedHash. I don't want to undermine the tremendous effort that has been pouring into rails though. Perhaps they should prefix internal classes with Rails...