I have a condition where, I get a hash
hash = {"_id"=>"4de7140772f8be03da000018", .....}
and I want this hash as
hash = {"id"=>"4de7140772f8be03da000018", ......}
P.S: I don't know what are the keys in the hash, they are random which comes with an "_" prefix for every key and I want no underscores
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…