diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-10 17:47:04 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-10 17:47:04 +0000 |
commit | ea803aa4e3088522855d3695166b6489a273382f (patch) | |
tree | e54496db49d3d36595da57e1bd05e20e74213e2d /activerecord/lib | |
parent | 1cad24f6fdd0b6e966ecfc06b76ce15579368f9a (diff) | |
download | rails-ea803aa4e3088522855d3695166b6489a273382f.tar.gz rails-ea803aa4e3088522855d3695166b6489a273382f.tar.bz2 rails-ea803aa4e3088522855d3695166b6489a273382f.zip |
Doc changes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/observer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/observer.rb b/activerecord/lib/active_record/observer.rb index 698b3ff412..74f76efe3f 100644 --- a/activerecord/lib/active_record/observer.rb +++ b/activerecord/lib/active_record/observer.rb @@ -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 |