Permalink
Browse files

typo

  • Loading branch information...
1 parent f392a63 commit cd2e535a8bd6f32002550e1e6bc25957e8bbd872 @fxn fxn committed Aug 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/association_proxy.rb
@@ -250,7 +250,7 @@ def foreign_key_present
# 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})"

0 comments on commit cd2e535

Please sign in to comment.