On Feb 20, 8:02 pm, Shawn Van Ittersum <[email protected]>
wrote:
> What's the method name to validate an object before saving it?
> Example: I have several related objects and want to make sure they're
> all valid before saving any of them.

Model#valid?

> Is it better to do the above in a transaction?

Yes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
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