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

minor corrections in AMo::Model docs [ci skip]

This commit is contained in:
Vijay Dev 2012-03-05 22:46:44 +05:30
parent cf75417f22
commit c0a7999115
2 changed files with 5 additions and 5 deletions

View file

@ -28,8 +28,8 @@ to integrate with Action Pack out of the box: +ActiveModel::Model+.
person.age # => 18 person.age # => 18
person.valid? # => false person.valid? # => false
It includes model name instrospection, conversions, translations and It includes model name introspections, conversions, translations and
validations, resulting in a class suitable to be used with ActionPack. validations, resulting in a class suitable to be used with Action Pack.
See +ActiveModel::Model+ for more examples. See +ActiveModel::Model+ for more examples.
Active Model also provides the following functionality to have ORM-like Active Model also provides the following functionality to have ORM-like

View file

@ -3,8 +3,8 @@ module ActiveModel
# == Active Model Basic Model # == Active Model Basic Model
# #
# Includes the required interface for an object to interact with +ActionPack+, # Includes the required interface for an object to interact with +ActionPack+,
# using different +ActiveModel+ modules. It includes model name instrospection, # using different +ActiveModel+ modules. It includes model name introspections,
# conversions, translations and validations . Besides that, it allows you to # conversions, translations and validations. Besides that, it allows you to
# initialize the object with a hash of attributes, pretty much like # initialize the object with a hash of attributes, pretty much like
# +ActiveRecord+ does. # +ActiveRecord+ does.
# #
@ -51,7 +51,7 @@ module ActiveModel
# person = Person.new(:id => 1, :name => 'bob') # person = Person.new(:id => 1, :name => 'bob')
# person.omg # => true # person.omg # => true
# #
# For more detailed information on other functionality available, please refer # For more detailed information on other functionalities available, please refer
# to the specific modules included in +ActiveModel::Model+ (see below). # to the specific modules included in +ActiveModel::Model+ (see below).
module Model module Model
def self.included(base) def self.included(base)