L. Caviola
Not a member
L. Caviola's latest activity
Wednesday, December 24 2008
1627
Allow multiple conditions for callbacks
was updated
in Ruby on Rails
-
- Tag changed from activesupport, callback, improvement to activesupport, callback, improvement, patch, tested
A nicer way to do this (thanks to fcheung)
-
L. Caviola created the ticket at 1:37 PMThis patch makes it possible to use :if and :unless together when using callbacks and allows you to add multiple conditions as an array.
Example:
before_va...