aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2008-08-17 23:36:43 +0200
committerXavier Noria <fxn@hashref.com>2008-08-17 23:36:43 +0200
commitcd2e535a8bd6f32002550e1e6bc25957e8bbd872 (patch)
treebe2adb14c546c14cc22db73abfe4b33dddd8e5f0
parentf392a639fc6e71dd0541b192b3c89a65d30bd818 (diff)
downloadrails-cd2e535a8bd6f32002550e1e6bc25957e8bbd872.tar.gz
rails-cd2e535a8bd6f32002550e1e6bc25957e8bbd872.tar.bz2
rails-cd2e535a8bd6f32002550e1e6bc25957e8bbd872.zip
typo
-rw-r--r--activerecord/lib/active_record/associations/association_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb
index 8a3186ded2..cf09ab7043 100644
--- a/activerecord/lib/active_record/associations/association_proxy.rb
+++ b/activerecord/lib/active_record/associations/association_proxy.rb
@@ -250,7 +250,7 @@ module ActiveRecord
# Raises ActiveRecord::AssociationTypeMismatch unless +record+ is of
# the kind of the class of the associated objects. Meant to be used as
- # a sanity check when you are about to assing an associated record.
+ # a sanity check when you are about to assign an associated record.
def raise_on_type_mismatch(record)
unless record.is_a?(@reflection.klass)
message = "#{@reflection.class_name}(##{@reflection.klass.object_id}) expected, got #{record.class}(##{record.class.object_id})"