On Jan 15, 2008 8:38 AM, Sharon Rosner <[EMAIL PROTECTED]> wrote:
>
> > I'm curious about what seems to be a current state of saving a model
> > with validations. Right now it seems that obj.save will save the
> > object to the database regardless of whether or not it passes
> > validations. I would like to know if this is the intended behavior.
>
> Right now it is the intended behavior. I'm going to dive in today and
> rewrite the vaidations code. My suggestion is to have #save check for
> validity, and also have a #save! method which bypasses validations. I
> think that's a reasonable solution, and if I'n not mistaken that's how
> things are done in Og.

+1 on having #save check validations and abort on failure.

Zack

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to sequel-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to