ActiveRecord::Errors seems to disappear when using DJ

3 views
Skip to first unread message

Rob Aldred

unread,
Oct 28, 2009, 3:16:41 PM10/28/09
to delayed_job
Hey,
I seem to be experiencing some strange behaviour with the instance of
an ActiveRecord::Base model is running under DJ

I have tried to compose an example so I can explain the behavior.
http://gist.github.com/220723

This shows a simplified example of what i'm doing to run job.bulk_task
later.
For some reason the error i add on line 30 suddenly disappears...
making them unavailable later on....

Maybe its something else im doing whats cause them to go missing, but
just wondered if anyone might know something obvious.

Cheers
--Rob

David Genord II

unread,
Oct 28, 2009, 6:04:32 PM10/28/09
to delay...@googlegroups.com
Calling save or save! clears all errors and reruns the validations.
David Genord II

Rob Aldred

unread,
Oct 29, 2009, 5:01:52 AM10/29/09
to delayed_job
I don't know why I didn't think about that, of course it does, thank
you for your time.

On Oct 28, 10:04 pm, David Genord II <albus...@gmail.com> wrote:
> Calling save or save! clears all errors and reruns the validations.
> David Genord II
>
Reply all
Reply to author
Forward
0 new messages