# File lib/mocha/class_method.rb, line 58 58: def restore_original_method 59: if method_exists?(hidden_method) 60: begin 61: stubbee.__metaclass__.send(:alias_method, method, hidden_method) 62: stubbee.__metaclass__.send(:remove_method, hidden_method) 63: rescue NameError 64: # deal with nasties like ActiveRecord::Associations::AssociationProxy 65: end 66: end 67: end