This project is archived and is in readonly mode.

#6571 new
Chris Griego

Adding around_(save|update|create|destroy) to an ActiveRecord::Observer causes action to fail

Reported by Chris Griego | March 14th, 2011 @ 05:20 AM

If you define around_save, around_update, around_create, or around_destroy on an ActiveRecord::Observer, then any observed classes' save, update, create, and destroy actions will fail respectively. This is because when the callbacks are registered, the blocks passed to around callbacks aren't propagated to the observer so they are never called.

This affects Rails 3.0+

No comments found

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

Pages