On 18/03/11 10:26 AM, Israel Ben Guilherme Fonseca wrote:
Why the transaction is attached to the instance?
just as a convenience, especially inside your model code.
The "link" API is very weird.
I don't know what this is but I've never used it
Wouldn't be nicier a global method to start/commit/rollback transactions?And how can I force a rollback?
AnyOfYourModel.transaction do |t| t.rollback end -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamapper@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.