Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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

#1087

The attached patch:

  1. Adds an 'extra_conditions' parameter to configure_dependency_for_has_many. I need this as a plugin hook.

  2. Makes the generated before_destroy callback methods run in transactions. This is also a plugin hook that I need.

Reported by Hongli Lai · September 21st, 2008 @ 10:57 PM

State: committed
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Hongli Lai
  2. Hongli Lai
  3. Hongli Lai
    Hongli Lai

    There was a little mistake in the previous patch. Here's an updated patch.

    September 23rd, 2008 @ 08:45 PM

  4. Repository
    Repository
    • 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 Add 'extra_conditions' parameter to configure_dependency_for_has_many and mak... state:committed] http://github.com/rails/rails/co...

    September 24th, 2008 @ 12:35 PM