Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revised and added headings.

  • Loading branch information...
commit 2572af11cef1649ff9c8d38fbd2d68a8a5254d04 1 parent de12b5e
@rizwanreza rizwanreza authored
View
2  activemodel/lib/active_model/naming.rb
@@ -34,7 +34,7 @@ def human(options={})
I18n.translate(defaults.shift, options)
end
end
-
+
# == Active Model Naming
#
# Creates a +model_name+ method on your object.
View
4 activemodel/lib/active_model/observing.rb
@@ -9,6 +9,8 @@ module Observing
extend ActiveSupport::Concern
module ClassMethods
+ # == Active Model Observers Activation
+ #
# Activates the observers assigned. Examples:
#
# # Calls PersonObserver.instance
@@ -89,6 +91,8 @@ def notify_observers(method)
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
2  activemodel/lib/active_model/serialization.rb
@@ -2,6 +2,8 @@
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:

0 comments on commit 2572af1

Please sign in to comment.
Something went wrong with that request. Please try again.