1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revised and added headings.

This commit is contained in:
Rizwan Reza 2010-06-14 13:49:01 +04:30
parent de12b5e616
commit 2572af11ce
3 changed files with 7 additions and 1 deletions

View file

@ -34,7 +34,7 @@ module ActiveModel
I18n.translate(defaults.shift, options)
end
end
# == Active Model Naming
#
# Creates a +model_name+ method on your object.

View file

@ -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

View file

@ -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: