mongoid/mongoid — pull request #1523 by jonasschneider (2011-12-23 14:29:49+00:00)
Title: Respect ActiveModel's observer disabling

This patch replaces `observer.send` with `observer.update`, so observer methods are not called when the observer is disabled via `Document.observers.disable(:all)` per ActiveModel semantics.
The `block.call` is there because for `around` filters, the passed block does not get called if the observer is disabled. This stops the callback chain and leads to bad breakage. This can probably be called a bug in ActiveModel.
Fixes #1519.