diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-27 16:06:04 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-27 16:06:04 +0000 |
commit | 0ba5bd583b54b104b55e190bc516c2e491eb38f0 (patch) | |
tree | c17ea8a63b68d97b8ebd18327ccf6c54e247ee3f /activerecord/lib/active_record | |
parent | beff664f2a036c91e266e2ad867f3d1ed8d716c8 (diff) | |
download | rails-0ba5bd583b54b104b55e190bc516c2e491eb38f0.tar.gz rails-0ba5bd583b54b104b55e190bc516c2e491eb38f0.tar.bz2 rails-0ba5bd583b54b104b55e190bc516c2e491eb38f0.zip |
Update documentation for observers to reflect new configuration system.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/observer.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/observer.rb b/activerecord/lib/active_record/observer.rb index 62626e1852..7d33509c8c 100644 --- a/activerecord/lib/active_record/observer.rb +++ b/activerecord/lib/active_record/observer.rb @@ -74,9 +74,10 @@ module ActiveRecord # # == Triggering Observers # - # In order to activate an observer, you need to call Observer.instance. In Rails, this can be done in controllers - # using the short-hand of for example observer :comment_observer. Or directly from Active Record, with - # ActiveRecord::Base.observer(:comment_observer). + # In order to activate an observer, list it in the <tt>config.active_record.observers</tt> configuration setting in your + # <tt>config/environment.rb</tt> file. + # + # config.active_record.observers = :comment_observer, :signup_observer class Observer include Singleton |