On 11/24/06, xavi
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> 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...
Because both save and save! validate, and save! calls save.
save! validates once in 1.2.
jeremy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---