diff options
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 |