aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-08-27 10:45:53 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-08-27 10:45:53 -0300
commite0d28efe5e0fb2140c927cea846250ff397ab9d3 (patch)
treecc3e73c0df717f111e8fabddf27100b54b277960
parent35b1c4f85ce53b7203ae589a767c3f1f6d8412fb (diff)
parent2d2cd7e648a34d1967a70de4999548ddaf24cf7a (diff)
downloadrails-e0d28efe5e0fb2140c927cea846250ff397ab9d3.tar.gz
rails-e0d28efe5e0fb2140c927cea846250ff397ab9d3.tar.bz2
rails-e0d28efe5e0fb2140c927cea846250ff397ab9d3.zip
Merge pull request #16721 from yui-knk/fix/guides_association_basics
[ci skip] Fix typo of `collection=` method.
-rw-r--r--guides/source/association_basics.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index daf4113b66..bbff35e4f3 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -1321,7 +1321,7 @@ When you declare a `has_many` association, the declaring class automatically gai
* `collection<<(object, ...)`
* `collection.delete(object, ...)`
* `collection.destroy(object, ...)`
-* `collection=objects`
+* `collection=(objects)`
* `collection_singular_ids`
* `collection_singular_ids=ids`
* `collection.clear`
@@ -1399,7 +1399,7 @@ The `collection.destroy` method removes one or more objects from the collection
WARNING: Objects will _always_ be removed from the database, ignoring the `:dependent` option.
-##### `collection=objects`
+##### `collection=(objects)`
The `collection=` method makes the collection contain only the supplied objects, by adding and deleting as appropriate.
@@ -1810,7 +1810,7 @@ When you declare a `has_and_belongs_to_many` association, the declaring class au
* `collection<<(object, ...)`
* `collection.delete(object, ...)`
* `collection.destroy(object, ...)`
-* `collection=objects`
+* `collection=(objects)`
* `collection_singular_ids`
* `collection_singular_ids=ids`
* `collection.clear`
@@ -1895,7 +1895,7 @@ The `collection.destroy` method removes one or more objects from the collection
@part.assemblies.destroy(@assembly1)
```
-##### `collection=objects`
+##### `collection=(objects)`
The `collection=` method makes the collection contain only the supplied objects, by adding and deleting as appropriate.