aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2014-08-27 22:31:42 +0900
committeryui-knk <spiketeika@gmail.com>2014-08-27 22:37:56 +0900
commit2d2cd7e648a34d1967a70de4999548ddaf24cf7a (patch)
treecc3e73c0df717f111e8fabddf27100b54b277960 /guides/source/association_basics.md
parent35b1c4f85ce53b7203ae589a767c3f1f6d8412fb (diff)
downloadrails-2d2cd7e648a34d1967a70de4999548ddaf24cf7a.tar.gz
rails-2d2cd7e648a34d1967a70de4999548ddaf24cf7a.tar.bz2
rails-2d2cd7e648a34d1967a70de4999548ddaf24cf7a.zip
[ci skip] Fix typo of `collection=` method.
Diffstat (limited to 'guides/source/association_basics.md')
-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.