diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-05 18:54:41 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-05 18:54:41 +0000 |
commit | 2af36bbbd4c5a9967e5f3b4263100ef793aee4d7 (patch) | |
tree | 5e51f90362bac00dca11de025bdc7a229e4f6f59 /activerecord/lib/active_record/associations/has_many_through_association.rb | |
parent | c27b9db39fd1d86448572c06df2bd097debbfe10 (diff) | |
download | rails-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/lib/active_record/associations/has_many_through_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_through_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |