Ticket #24 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Callback problems

Reported by: Krishna Assigned to: jcm
Priority: critical Milestone:
Component: plugin Version:
Keywords: Cc:

Description

Problems with callbacks (before_destroy and friends) have been reported on the list (http://rubyforge.org/pipermail/betternestedset-talk/2006-December/000071.html). We need to ensure that:

1) Additional callbacks added to nested set models work as expected

2) The nested set callbacks work regardless of what additional callbacks are added to the model. This is likely to be a particular problem for the ez-set branch, which overrides before_destroy.

Change History

01/04/07 22:33:26 changed by Krishna

As mentioned on the list, the problems are caused by the fact that I overrode #update. If http://dev.rubyonrails.org/ticket/6896 gets included in core, both our problems should be solved.

(We still need the tests, though).

02/09/07 00:15:57 changed by krishna

  • status changed from new to closed.
  • resolution set to fixed.

fixed in rev 47. unfortunately there is now a bug in testing where the callbacks get triggered twice. this bug appears to only pertain to testing.