From 0ba5bd583b54b104b55e190bc516c2e491eb38f0 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Thu, 27 Oct 2005 16:06:04 +0000 Subject: 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 --- activerecord/lib/active_record/observer.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'activerecord/lib') 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 config.active_record.observers configuration setting in your + # config/environment.rb file. + # + # config.active_record.observers = :comment_observer, :signup_observer class Observer include Singleton -- cgit v1.2.3