This project is archived and is in readonly mode.
Add 'extra_conditions' parameter to configure_dependency_for_has_many and make generated callbacks use transactions
Reported by Hongli Lai | September 21st, 2008 @ 10:57 PM | in 2.x
The attached patch:
-
Adds an 'extra_conditions' parameter to configure_dependency_for_has_many. I need this as a plugin hook.
-
Makes the generated before_destroy callback methods run in transactions. This is also a plugin hook that I need.
Comments and changes to this ticket
-
Hongli Lai September 23rd, 2008 @ 08:45 PM
There was a little mistake in the previous patch. Here's an updated patch.
-
Repository September 24th, 2008 @ 12:35 PM
- State changed from new to committed
(from [72b772ae9b692add0359574b0da7038bd1420a5a]) Refactor configure_dependency_for_has_many to use a few more methods.
Add an additional conditions option to make it slightly easier for certain plugins.
Signed-off-by: Michael Koziarski michael@koziarski.com [#1087 state:committed] http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 1087 Add 'extra_conditions' parameter to configure_dependency_for_has_many and make generated callbacks use transactions Signed-off-by: Michael Koziarski michael@koziarski.com [#...