Re: [Rails-core] Proposal for before_transaction callback

2014-12-23 Thread Matt Jones
On Dec 19, 2014, at 8:18 PM, Jesse Storimer je...@shopify.com wrote: I'd like to propose adding another callback to the ActiveRecord lifecycle that triggers BEFORE the database transaction begins. Think of it as a corollary to after_commit and after_rollback. ## Examples This is an

[Rails-core] Proposal for before_transaction callback

2014-12-22 Thread Jesse Storimer
I'd like to propose adding another callback to the ActiveRecord lifecycle that triggers BEFORE the database transaction begins. Think of it as a corollary to after_commit and after_rollback. *## Examples* This is an example resembling something we have to deal with in the Shopify codebase.