Mongoid::Observer is an almost exact copy of ActiveRecord::Observer
- Hook into the fast callback system, like ActiveRecord
- Mongoid:Observer fixes a bug with around hooks that exists in ActiveRecord::Observer
- Complete with generator
- Complete with specs
Add ActiveModel::Observing methods to Mongoid::Config and Mongoid::Document
- ActiveModel assumes the ORM uses a Base class, like ActiveRecord, it should be split:
- Observable (dealing with @observer_instances), for Mongoid::Document
- some sort of Observer manager (dealing with @observers), for Mongoid::Config
- Add delegators to ::Mongoid
- Railtie handle lifecycle, taken from ActiveRecord