aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-03-06 06:32:31 -0800
committerVijay Dev <vijaydev.cse@gmail.com>2012-03-06 06:32:31 -0800
commitcf1d97504893ed050da62b30de55d5f67b2a6f69 (patch)
tree843c8914d2644c0048c481e84e1a2ab9d26d6985
parent45b4ebc7df1b0e25a38862d61566d8b380cb3798 (diff)
parenta75afbdd82fcc1a4799af45fb742af674ba31002 (diff)
downloadrails-cf1d97504893ed050da62b30de55d5f67b2a6f69.tar.gz
rails-cf1d97504893ed050da62b30de55d5f67b2a6f69.tar.bz2
rails-cf1d97504893ed050da62b30de55d5f67b2a6f69.zip
Merge pull request #86 from bschaeffer/ar-doc-fix
Fix doc examples for has_and_belongs_to_many association
-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