Skip to content

Commit

Permalink
Remove incorrect documentation about build_assoc on has_one. This is …
Browse files Browse the repository at this point in the history
…proven, for example, by test_successful_build_association in has_one_associations_test.rb
  • Loading branch information
jonleighton authored and tenderlove committed Jan 11, 2011
1 parent 00dc8f7 commit 15adcc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/lib/active_record/associations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15adcc3

Please sign in to comment.