aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorChris Kampmeier <chris@kampers.net>2009-01-11 20:47:01 -0800
committerChris Kampmeier <chris@kampers.net>2009-01-11 20:47:01 -0800
commit2a00f72acad1657b08ec4cef515ffbb693883aa3 (patch)
tree944f29e22df1b6bf8301a96b7b49fb54296a133a /activerecord/lib/active_record/base.rb
parentefce9aa71bf589e18e05b1ec613ab3f0dd717083 (diff)
downloadrails-2a00f72acad1657b08ec4cef515ffbb693883aa3.tar.gz
rails-2a00f72acad1657b08ec4cef515ffbb693883aa3.tar.bz2
rails-2a00f72acad1657b08ec4cef515ffbb693883aa3.zip
Docs: in typical usage, "descendant" is the noun and "descendent" is the adjective
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index a9572fbda8..938dd2a9b1 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -327,7 +327,7 @@ module ActiveRecord #:nodoc:
# User.find(user.id).preferences # => { "background" => "black", "display" => large }
#
# You can also specify a class option as the second parameter that'll raise an exception if a serialized object is retrieved as a
- # descendent of a class not in the hierarchy. Example:
+ # descendant of a class not in the hierarchy. Example:
#
# class User < ActiveRecord::Base
# serialize :preferences, Hash
@@ -2167,7 +2167,7 @@ module ActiveRecord #:nodoc:
scoped_methods.last
end
- # Returns the class type of the record using the current module as a prefix. So descendents of
+ # Returns the class type of the record using the current module as a prefix. So descendants of
# MyApp::Business::Account would appear as MyApp::Business::AccountSubclass.
def compute_type(type_name)
modularized_name = type_name_with_module(type_name)
@@ -2880,7 +2880,7 @@ module ActiveRecord #:nodoc:
id
end
- # Sets the attribute used for single table inheritance to this class name if this is not the ActiveRecord::Base descendent.
+ # Sets the attribute used for single table inheritance to this class name if this is not the ActiveRecord::Base descendant.
# Considering the hierarchy Reply < Message < ActiveRecord::Base, this makes it possible to do Reply.new without having to
# set <tt>Reply[Reply.inheritance_column] = "Reply"</tt> yourself. No such attribute would be set for objects of the
# Message class in that example.