aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/observing.rb
diff options
context:
space:
mode:
authorRizwan Reza <rizwanreza@gmail.com>2010-06-14 13:49:01 +0430
committerRizwan Reza <rizwanreza@gmail.com>2010-06-14 13:49:01 +0430
commit2572af11cef1649ff9c8d38fbd2d68a8a5254d04 (patch)
treecd8196c826e8b2fd3f20bdc85e262f6622d8c5d3 /activemodel/lib/active_model/observing.rb
parentde12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf (diff)
downloadrails-2572af11cef1649ff9c8d38fbd2d68a8a5254d04.tar.gz
rails-2572af11cef1649ff9c8d38fbd2d68a8a5254d04.tar.bz2
rails-2572af11cef1649ff9c8d38fbd2d68a8a5254d04.zip
Revised and added headings.
Diffstat (limited to 'activemodel/lib/active_model/observing.rb')
-rw-r--r--activemodel/lib/active_model/observing.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb
index d7e3ca100e..14f8bf72dc 100644
--- a/activemodel/lib/active_model/observing.rb
+++ b/activemodel/lib/active_model/observing.rb
@@ -9,6 +9,8 @@ module ActiveModel
extend ActiveSupport::Concern
module ClassMethods
+ # == Active Model Observers Activation
+ #
# Activates the observers assigned. Examples:
#
# # Calls PersonObserver.instance
@@ -89,6 +91,8 @@ module ActiveModel
end
end
+ # == Active Model Observers
+ #
# Observer classes respond to lifecycle callbacks to implement trigger-like
# behavior outside the original class. This is a great way to reduce the
# clutter that normally comes when the model class is burdened with