2007-10-26から1日間の記事一覧

content? contents?

http://q.hatena.ne.jp/1193281945 content派多し!ということでcontentに統一しようっと。 でも、Sticky Plus!はcontents…直すかなぁ。

明示的にロールバックする。

transaction do |transaction| david.withdrawal(100) mary.deposit(100) transaction.rollback! # rolls back the transaction that was otherwise going to be successful end