mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
00dc8f77a2
commit
15adcc3927
1 changed files with 1 additions and 2 deletions
|
@ -1021,8 +1021,7 @@ module ActiveRecord
|
|||
# [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
|
||||
|
|
Loading…
Reference in a new issue