some ruby transaction

Ruby code posted by Stupot
created at 03 Jul 14:00

Edit | Back
1
2
3
4
5
6
def transact
  Person.transaction do
    @person.eat_final_meal!
    @person.expire!
  end
end
99 Bytes in 3 ms with coderay