aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-12-05 18:54:41 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-12-05 18:54:41 +0000
commit2af36bbbd4c5a9967e5f3b4263100ef793aee4d7 (patch)
tree5e51f90362bac00dca11de025bdc7a229e4f6f59 /activerecord
parentc27b9db39fd1d86448572c06df2bd097debbfe10 (diff)
downloadrails-2af36bbbd4c5a9967e5f3b4263100ef793aee4d7.tar.gz
rails-2af36bbbd4c5a9967e5f3b4263100ef793aee4d7.tar.bz2
rails-2af36bbbd4c5a9967e5f3b4263100ef793aee4d7.zip
Fix typos (closes #10378)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/aggregations.rb2
-rwxr-xr-xactiverecord/lib/active_record/associations.rb2
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb2
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb2
-rwxr-xr-xactiverecord/lib/active_record/callbacks.rb2
-rwxr-xr-xactiverecord/test/validations_test.rb2
6 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index c227893765..6fef668e1a 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -123,7 +123,7 @@ module ActiveRecord
# This defaults to +false+.
#
# An optional block can be passed to convert the argument that is passed to the writer method into an instance of
- # <tt>:class_name</tt>. The block will only be called if the arguement is not already an instance of <tt>:class_name</tt>.
+ # <tt>:class_name</tt>. The block will only be called if the argument is not already an instance of <tt>:class_name</tt>.
#
# Option examples:
# composed_of :temperature, :mapping => %w(reading celsius)
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index e9a1eb67b9..16cc4773cd 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -266,7 +266,7 @@ module ActiveRecord
#
# === Association callbacks
#
- # Similiar to the normal callbacks that hook into the lifecycle of an Active Record object, you can also define callbacks that get
+ # Similar to the normal callbacks that hook into the lifecycle of an Active Record object, you can also define callbacks that get
# triggered when you add an object to or remove an object from an association collection. Example:
#
# class Project
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb
index 2d06e90416..06b1276860 100644
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -120,7 +120,7 @@ module ActiveRecord
def count(*args)
column_name, options = @reflection.klass.send(:construct_count_options_from_args, *args)
if @reflection.options[:uniq]
- # This is needed becase 'SELECT count(DISTINCT *)..' is not valid sql statement.
+ # This is needed because 'SELECT count(DISTINCT *)..' is not valid sql statement.
column_name = "#{@reflection.klass.table_name}.#{@reflection.klass.primary_key}" if column_name == :all
options.merge!(:distinct => true)
end
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index 118b596591..dd26c1f749 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -79,7 +79,7 @@ module ActiveRecord
end
end
- # Check to see if the method is defined in the model or any of it's subclasses that also derive from ActiveRecord.
+ # Check to see if the method is defined in the model or any of its subclasses that also derive from ActiveRecord.
# Raise DangerousAttributeError if the method is defined by ActiveRecord though.
def instance_method_already_implemented?(method_name)
return true if method_name =~ /^id(=$|\?$|$)/
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index c8807f6f64..9a9bf28323 100755
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -164,7 +164,7 @@ module ActiveRecord
# If <tt>Base#save!</tt> is called it will raise a +RecordNotSaved+ exception.
# Nothing will be appended to the errors object.
#
- # == Cancelling callbacks
+ # == Canceling callbacks
#
# If a <tt>before_*</tt> callback returns +false+, all the later callbacks and the associated action are cancelled. If an <tt>after_*</tt> callback returns
# +false+, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks
diff --git a/activerecord/test/validations_test.rb b/activerecord/test/validations_test.rb
index 263aba7747..a694cbfe72 100755
--- a/activerecord/test/validations_test.rb
+++ b/activerecord/test/validations_test.rb
@@ -367,7 +367,7 @@ class ValidationsTest < Test::Unit::TestCase
assert !r2.valid?, "Saving r2"
# Should succeed as validates_uniqueness_of only applies to
- # UniqueReply and it's subclasses
+ # UniqueReply and its subclasses
r3 = t.replies.create "title" => "r2", "content" => "a barrel of fun"
assert r3.valid?, "Saving r3"
end