From 2d2cd7e648a34d1967a70de4999548ddaf24cf7a Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 27 Aug 2014 22:31:42 +0900 Subject: [ci skip] Fix typo of `collection=` method. --- guides/source/association_basics.md | 8 ++++---- 1 file 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. -- cgit v1.2.3