From 2af36bbbd4c5a9967e5f3b4263100ef793aee4d7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 5 Dec 2007 18:54:41 +0000 Subject: Fix typos (closes #10378) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/aggregations.rb | 2 +- activerecord/lib/active_record/associations.rb | 2 +- .../lib/active_record/associations/has_many_through_association.rb | 2 +- activerecord/lib/active_record/attribute_methods.rb | 2 +- activerecord/lib/active_record/callbacks.rb | 2 +- activerecord/test/validations_test.rb | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'activerecord') 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 - # :class_name. The block will only be called if the arguement is not already an instance of :class_name. + # :class_name. The block will only be called if the argument is not already an instance of :class_name. # # 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 Base#save! is called it will raise a +RecordNotSaved+ exception. # Nothing will be appended to the errors object. # - # == Cancelling callbacks + # == Canceling callbacks # # If a before_* callback returns +false+, all the later callbacks and the associated action are cancelled. If an after_* 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 -- cgit v1.2.3