aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorBraden Schaeffer <bschaeffer@me.com>2012-03-05 11:35:20 -0600
committerBraden Schaeffer <bschaeffer@me.com>2012-03-05 11:35:20 -0600
commita75afbdd82fcc1a4799af45fb742af674ba31002 (patch)
tree9446d13c3eb1ba52d7913bf193e55ec7fa8ec8f3 /activerecord
parent9f7804215249fa725596fdbeb4aeba9abbc1f26f (diff)
downloadrails-a75afbdd82fcc1a4799af45fb742af674ba31002.tar.gz
rails-a75afbdd82fcc1a4799af45fb742af674ba31002.tar.bz2
rails-a75afbdd82fcc1a4799af45fb742af674ba31002.zip
Fix doc examples for has_and_belongs_to_many association
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 958821add6..b1a5110e2d 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1512,8 +1512,8 @@ module ActiveRecord
# * <tt>Developer#projects.size</tt>
# * <tt>Developer#projects.find(id)</tt>
# * <tt>Developer#projects.exists?(...)</tt>
- # * <tt>Developer#projects.build</tt> (similar to <tt>Project.new("project_id" => id)</tt>)
- # * <tt>Developer#projects.create</tt> (similar to <tt>c = Project.new("project_id" => id); c.save; c</tt>)
+ # * <tt>Developer#projects.build</tt> (similar to <tt>Project.new("developer_id" => id)</tt>)
+ # * <tt>Developer#projects.create</tt> (similar to <tt>c = Project.new("developer_id" => id); c.save; c</tt>)
# The declaration may include an options hash to specialize the behavior of the association.
#
# === Options