rails3.x patch

this is not working on rails 3 due to the faulty implementation of try in rails3