Change calls to Hash.each_pair method to the equivalent and 1.8-compatible Hash.each method