Dose custom rake task ignore observer?

I have an observer which will do some tidy up work around Model A.
But when I create or destroy A’s instance inside a custom rake task,
the observer seems not get called at all?
Can some one explain this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs