diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 06:23:12 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 06:23:12 +0900 |
commit | 7f495993bbadf1bd597ab4652d6f8bd53d331a12 (patch) | |
tree | 875d1d4a2de508cc02df72fe709a0bb317daddcb | |
parent | 3bf1267257b2e3d705a7cfe535f854a32a009f38 (diff) | |
download | rails-7f495993bbadf1bd597ab4652d6f8bd53d331a12.tar.gz rails-7f495993bbadf1bd597ab4652d6f8bd53d331a12.tar.bz2 rails-7f495993bbadf1bd597ab4652d6f8bd53d331a12.zip |
Observers was extracted from Active Model as `rails-observers` gem
-rw-r--r-- | activemodel/README.rdoc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index 3262bf61ac..3cc2d9ad8e 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -133,24 +133,6 @@ behavior out of the box: {Learn more}[link:classes/ActiveModel/Naming.html] -* Observer support - - ActiveModel::Observers allows your object to implement the Observer - pattern in a Rails App and take advantage of all the standard observer - functions. - - class PersonObserver < ActiveModel::Observer - def after_create(person) - person.logger.info("New person added!") - end - - def after_destroy(person) - person.logger.warn("Person with an id of #{person.id} was destroyed!") - end - end - - {Learn more}[link:classes/ActiveModel/Observer.html] - * Making objects serializable ActiveModel::Serialization provides a standard interface for your object |