Hi all, If I have a model called User, with some validation restrictions on it.... if I say user.update(a_hash) and the hash doesn't validate, an exception is raised, but the user record is also updated with the invalid hash. Can anyone explain why this happens or how I can avoid it? Preferably, I'd like to see two things: 1) be able to check if validation failed without involving exceptions, and 2) have data not be saved if an error occurs.
Using sqlite3 and the latest Sequel gems. Thanks, Max --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
