diff options
author | Braden Schaeffer <bschaeffer@me.com> | 2012-03-05 11:35:20 -0600 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-09 00:21:57 +0530 |
commit | 357e288f4470f484ecd500954fd17fba2512c416 (patch) | |
tree | 891053e20dc2751b1b9e0fafd3ac8b8905ff401d | |
parent | 30feb8c816a7314b69530bf383d6cacce4a602c2 (diff) | |
download | rails-357e288f4470f484ecd500954fd17fba2512c416.tar.gz rails-357e288f4470f484ecd500954fd17fba2512c416.tar.bz2 rails-357e288f4470f484ecd500954fd17fba2512c416.zip |
Fix doc examples for has_and_belongs_to_many association
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 0efa111d12..8ebb27b682 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1513,8 +1513,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 |