aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/aggregations.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-26 13:05:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-26 13:05:48 +0000
commita8eea0b04b2989bd054d7c852d636f1cc5494957 (patch)
treebff2ddce73b205a28bdfe048d74b669b92b20671 /activerecord/lib/active_record/aggregations.rb
parent475bd74168a611cf0aeeda42d464aff1b3dfa806 (diff)
downloadrails-a8eea0b04b2989bd054d7c852d636f1cc5494957.tar.gz
rails-a8eea0b04b2989bd054d7c852d636f1cc5494957.tar.bz2
rails-a8eea0b04b2989bd054d7c852d636f1cc5494957.zip
Fix docs (closes #2491)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/aggregations.rb')
-rw-r--r--activerecord/lib/active_record/aggregations.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index 29cf5c3925..6824df9b37 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -7,8 +7,8 @@ module ActiveRecord
# Active Record implements aggregation through a macro-like class method called +composed_of+ for representing attributes
# as value objects. It expresses relationships like "Account [is] composed of Money [among other things]" or "Person [is]
- # composed of [an] address". Each call to the macro adds a description on how the value objects are created from the
- # attributes of the entity object (when the entity is initialized either as a new object or from finding an existing)
+ # composed of [an] address". Each call to the macro adds a description of how the value objects are created from the
+ # attributes of the entity object (when the entity is initialized either as a new object or from finding an existing object)
# and how it can be turned back into attributes (when the entity is saved to the database). Example:
#
# class Customer < ActiveRecord::Base
@@ -88,8 +88,8 @@ module ActiveRecord
# == Writing value objects
#
# Value objects are immutable and interchangeable objects that represent a given value, such as a Money object representing
- # $5. Two Money objects both representing $5 should be equal (through methods such == and <=> from Comparable if ranking makes
- # sense). This is unlike a entity objects where equality is determined by identity. An entity class such as Customer can
+ # $5. Two Money objects both representing $5 should be equal (through methods such as == and <=> from Comparable if ranking
+ # makes sense). This is unlike entity objects where equality is determined by identity. An entity class such as Customer can
# easily have two different objects that both have an address on Hyancintvej. Entity identity is determined by object or
# relational unique identifiers (such as primary keys). Normal ActiveRecord::Base classes are entity objects.
#