Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on May 17, 2011
  1. @dlee
  2. @dlee
Commits on May 8, 2011
  1. @dlee

    indifferent access should recurse Hash subclasses

    dlee committed
    This commit makes Hash subclasses convert to HWIA by default for nested
    objects of subclasses of Hash, but allows certain subclasses to prevent nested
    conversion by introducing Hash#nested_under_indifferent_access that subclasses
    can overwrite.
    ActiveSupport::OrderedHash is one such subclass that overwrites
    +nested_under_indifferent_access+, since implicitly converting it to HWIA would
    remove the ordering of keys and values in Ruby 1.8.
    This change is necessary because commit ce9456e broke nested indifferent access
    conversion for all subclasses of Hash.
Something went wrong with that request. Please try again.