Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update documentation for observers to reflect new configuration system.

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 0ba5bd583b54b104b55e190bc516c2e491eb38f0 1 parent beff664
Marcel Molina authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 activerecord/lib/active_record/observer.rb
7 activerecord/lib/active_record/observer.rb
@@ -74,9 +74,10 @@ def observers=(*observers)
# == 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
- #
+ # 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
Please sign in to comment.
Something went wrong with that request. Please try again.