This transaction block always returns nil: ``` ruby transaction do return true end ``` I was expecting `true`. The code at https://github.com/datamapper/dm-transactions/blob/master/lib/dm-transactions.rb#L142 seems guilty: Return value is not assigned (because we return early) and is thus nil. I would leave the return value alone, the block is at the end of the method anyway.
This transaction block always returns nil:
I was expecting
true.The code at https://github.com/datamapper/dm-transactions/blob/master/lib/dm-transactions.rb#L142 seems guilty: Return value is not assigned (because we return early) and is thus nil.
I would leave the return value alone, the block is at the end of the method anyway.