diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-01-07 15:34:57 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-11 13:45:06 -0800 |
commit | 15adcc3927b96328f3375aedd7d829f5e582854c (patch) | |
tree | 8b30d24b28d4bca687f7c77b257ff766985e2a56 | |
parent | 00dc8f77a2f9962d1bcd6267c63632bb39e6c547 (diff) | |
download | rails-15adcc3927b96328f3375aedd7d829f5e582854c.tar.gz rails-15adcc3927b96328f3375aedd7d829f5e582854c.tar.bz2 rails-15adcc3927b96328f3375aedd7d829f5e582854c.zip |
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
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 5f29f7c6f2..d26519e7d5 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -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 |