validate method called 2 times when saving

xavi
2006-11-24T23:52:25Z

Hello,

when I call the save! method in one of my model objects, the validate
method in that same object is called 2 times. Why is this? It doesn''t
happen when I call save (instead of save!), and looking at the source
code of these Rails methods, I don''t understand how
''validate'' can be
called 2 times when invoking save! and only 1 time when invoking save,
as the code for save! is simply...

save || raise(RecordNotSaved)

Do you know what''s happening here?

xavi

--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---