Doc changes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-04-10 17:47:04 +00:00
parent 1cad24f6fd
commit ea803aa4e3

View File

@@ -44,6 +44,11 @@ module ActiveRecord
# == Available callback methods
#
# The observer can implement callback methods for each of the methods described in the Callbacks module.
#
# == 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.
class Observer
include Singleton