diff options
author | Evgeniy Dolzhenko <dolzenko@gmail.com> | 2010-06-11 14:15:34 +0400 |
---|---|---|
committer | Evgeniy Dolzhenko <dolzenko@gmail.com> | 2010-06-11 14:15:34 +0400 |
commit | ccf9577aee86ce1f766c5e8854e0c285dc38f8ac (patch) | |
tree | 7d7aae452ebfeb8ae30016ceffd0e8686bbf1b57 /activerecord/lib/active_record/associations | |
parent | 2148e2cc943f17544f1288e742954fdaa8a92d62 (diff) | |
download | rails-ccf9577aee86ce1f766c5e8854e0c285dc38f8ac.tar.gz rails-ccf9577aee86ce1f766c5e8854e0c285dc38f8ac.tar.bz2 rails-ccf9577aee86ce1f766c5e8854e0c285dc38f8ac.zip |
Fix a bunch of minor spelling mistakes
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/through_association_scope.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/through_association_scope.rb b/activerecord/lib/active_record/associations/through_association_scope.rb index 1d2f323112..93bd6e3185 100644 --- a/activerecord/lib/active_record/associations/through_association_scope.rb +++ b/activerecord/lib/active_record/associations/through_association_scope.rb @@ -91,7 +91,7 @@ module ActiveRecord # Construct attributes for :through pointing to owner and associate. def construct_join_attributes(associate) - # TODO: revist this to allow it for deletion, supposing dependent option is supported + # TODO: revisit this to allow it for deletion, supposing dependent option is supported raise ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection.new(@owner, @reflection) if [:has_one, :has_many].include?(@reflection.source_reflection.macro) join_attributes = construct_owner_attributes(@reflection.through_reflection).merge(@reflection.source_reflection.primary_key_name => associate.id) |