aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-05-19 10:34:42 -0700
committerOscar Del Ben <info@oscardelben.com>2012-05-19 10:34:42 -0700
commitfae4a263c9ac45beb83307371cadf31da6d59d71 (patch)
tree77e3419da71551a541ec105313aad359670d78af
parent05fdb310b6e27a399ef3e99e32f319a1ef37bab1 (diff)
downloadrails-fae4a263c9ac45beb83307371cadf31da6d59d71.tar.gz
rails-fae4a263c9ac45beb83307371cadf31da6d59d71.tar.bz2
rails-fae4a263c9ac45beb83307371cadf31da6d59d71.zip
Typo
-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 c7a329d74d..7eeb16f0e8 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -10,9 +10,9 @@ 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 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
+ # 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).
#
# class Customer < ActiveRecord::Base
@@ -109,7 +109,7 @@ module ActiveRecord
# It's also important to treat the value objects as immutable. Don't allow the Money object to have
# its amount changed after creation. Create a new Money object with the new value instead. The
# Money#exchange_to method is an example of this. It returns a new value object instead of changing
- # its own values. Active Record won't persist value objects that have been changed through means
+ # its own values. Active Record wont persist value objects that have been changed through means
# other than the writer method.
#
# The immutable requirement is enforced by Active Record by freezing any object assigned as a value