Permalink
Browse files

Remove incorrect documentation about build_assoc on has_one. This is …

…proven, for example, by test_successful_build_association in has_one_associations_test.rb
  • Loading branch information...
1 parent 00dc8f7 commit 15adcc3927b96328f3375aedd7d829f5e582854c @jonleighton jonleighton committed with tenderlove Jan 7, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/associations.rb
@@ -1021,8 +1021,7 @@ def has_many(association_id, options = {}, &extension)
# [build_association(attributes = {})]
# Returns a new object of the associated type that has been instantiated
# with +attributes+ and linked to this object through a foreign key, but has not
- # yet been saved. <b>Note:</b> This ONLY works if an association already exists.
- # It will NOT work if the association is +nil+.
+ # yet been saved.
# [create_association(attributes = {})]
# Returns a new object of the associated type that has been instantiated
# with +attributes+, linked to this object through a foreign key, and that

0 comments on commit 15adcc3

Please sign in to comment.