基本上我想确保应该从过程方法调用method_1和method_2。
def process
begin
method_1 if some_condition
method_2 if some_condition
self.update_attribute(:status,DONE)
rescue=>e
self.update_attribute(:status,ERROR)
p e
end
end
def method_1
#some code
end
def method_2
#some code
end