
before_save saves even if false is returned
Reported by Aaron Wheeler | March 2nd, 2008 @ 07:08 AM
I've found that if I return false to either the before_save or before_create callback that the DataMapper instance still gets created. I've attached (and pastied: http://pastie.caboo.se/160065) the test that I've tried against 2.5 as well as Edge.
Comments and changes to this ticket
-
Dan Kubb (dkubb) April 15th, 2008 @ 03:34 AM
- Milestone cleared.
-
Sam Smoot May 21st, 2008 @ 01:15 AM
- State changed from new to resolved
Resolved in 0.9.0 with the new hooks mechanism. throw :halt to cancel a call stack.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »