Permalink
Browse files

Fix doc examples for has_and_belongs_to_many association

  • Loading branch information...
1 parent 9f78042 commit a75afbdd82fcc1a4799af45fb742af674ba31002 @bschaeffer bschaeffer committed Mar 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations.rb
@@ -1512,8 +1512,8 @@ def belongs_to(name, options = {})
# * <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

0 comments on commit a75afbd

Please sign in to comment.