This project is archived and is in readonly mode.

#5289 ✓resolved
Subba

no callbacks should be created for empty only option

Reported by Subba | August 3rd, 2010 @ 10:12 PM | in 3.x

Callback module creates all callbacks if empty array is provided for only option.
example.

define_model_callbacks :empty, :only => []

creates all three after, before,around filters.
this patch fixes this issue.

Comments and changes to this ticket

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>

Attachments

Referenced by

Pages