mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix doc examples for has_and_belongs_to_many association
This commit is contained in:
committed by
Vijay Dev
parent
30feb8c816
commit
357e288f44
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user