module MR::FakeRecord::Persistence::TransactionMethods
this is broken into a separate module so `FakeRecord` can extend it and provide easy access to the `transaction` method (for stubbing, etc)
Public Instance Methods
transaction() { || ... }
click to toggle source
ActiveRecord methods
# File lib/mr/fake_record/persistence.rb, line 29 def transaction begin yield if block_given? rescue ActiveRecord::Rollback # activerecord swallows rollback exceptions, they are only intended as a # mechanism to rollback the transaction end end