Multiple calls of validate() method in composed model by ActiveRecord, why?

Hi,

thank you for reading my post. When I went trough my logs last time, I
noticed that ActiveRecord calls the validate() method of one of my
models multiple times. The concerned model acts like a linked list (no
plug-in) and references itself. The validate() method is not only
called twice, but three or four times depending on the position of the
model instance in the list.

What’s the reason for this and how can I get rid of this?

Thank you very much in advance,
ms

On May 31, 11:50 am, ms [email protected] wrote:

Hi,

thank you for reading my post. When I went trough my logs last time, I
noticed that ActiveRecord calls the validate() method of one of my
models multiple times. The concerned model acts like a linked list (no
plug-in) and references itself. The validate() method is not only
called twice, but three or four times depending on the position of the
model instance in the list.

What’s the reason for this and how can I get rid of this?

What does your code look like?

Fred