class ActiveSupport::HashWithIndifferentAccess

def default(key = nil)

def default(key = nil)
  if key.is_a?(Symbol) && include?(key = key.to_s)
    self[key]
  else
    super
  end
end