From 2572af11cef1649ff9c8d38fbd2d68a8a5254d04 Mon Sep 17 00:00:00 2001 From: Rizwan Reza Date: Mon, 14 Jun 2010 13:49:01 +0430 Subject: Revised and added headings. --- activemodel/lib/active_model/naming.rb | 2 +- activemodel/lib/active_model/observing.rb | 4 ++++ activemodel/lib/active_model/serialization.rb | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index d6c469feae..06dcff9b8d 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -34,7 +34,7 @@ module ActiveModel I18n.translate(defaults.shift, options) end end - + # == Active Model Naming # # Creates a +model_name+ method on your object. 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 diff --git a/activemodel/lib/active_model/serialization.rb b/activemodel/lib/active_model/serialization.rb index 1c48d4613a..5670ec74cb 100644 --- a/activemodel/lib/active_model/serialization.rb +++ b/activemodel/lib/active_model/serialization.rb @@ -2,6 +2,8 @@ require 'active_support/core_ext/hash/except' require 'active_support/core_ext/hash/slice' module ActiveModel + # == Active Model Serialization + # # Provides a basic serialization to a serializable_hash for your object. # # A minimal implementation could be: -- cgit v1.2.3