class ActiveSupport::HashWithIndifferentAccess

def dup

Returns an exact copy of the hash.
def dup
  self.class.new(self).tap do |new_hash|
    new_hash.default = default
  end
end