From 00dc8f77a2f9962d1bcd6267c63632bb39e6c547 Mon Sep 17 00:00:00 2001
From: Jon Leighton <j@jonathanleighton.com>
Date: Fri, 7 Jan 2011 15:31:01 +0000
Subject: For a singular association, it should be build_association, rather
 than association.build (as association may be nil)

---
 activerecord/lib/active_record/associations.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 7659bd2d37..5f29f7c6f2 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -337,7 +337,7 @@ module ActiveRecord
     # * If either of these saves fail (due to one of the objects being invalid) the assignment
     #   statement returns +false+ and the assignment is cancelled.
     # * If you wish to assign an object to a +has_one+ association without saving it,
-    #   use the <tt>association.build</tt> method (documented below).
+    #   use the <tt>build_association</tt> method (documented below).
     # * Assigning an object to a +belongs_to+ association does not save the object, since
     #   the foreign key field belongs on the parent. It does not save the parent either.
     #
-- 
cgit v1.2.3