class ActiveSupport::HashWithIndifferentAccess

def compact

def compact
  dup.tap(&:compact!)
end