diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-14 13:49:01 +0430 |
---|---|---|
committer | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-14 13:49:01 +0430 |
commit | 2572af11cef1649ff9c8d38fbd2d68a8a5254d04 (patch) | |
tree | cd8196c826e8b2fd3f20bdc85e262f6622d8c5d3 /activemodel/lib/active_model | |
parent | de12b5e6167b4e2ce3bdee27f3ae9bf84c67cabf (diff) | |
download | rails-2572af11cef1649ff9c8d38fbd2d68a8a5254d04.tar.gz rails-2572af11cef1649ff9c8d38fbd2d68a8a5254d04.tar.bz2 rails-2572af11cef1649ff9c8d38fbd2d68a8a5254d04.zip |
Revised and added headings.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 2 | ||||
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 4 | ||||
-rw-r--r-- | activemodel/lib/active_model/serialization.rb | 2 |
3 files changed, 7 insertions, 1 deletions
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: |