diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-27 10:49:48 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-27 10:49:48 -0300 |
commit | 17a39c841d7ee9508da2b06eec72206ad3510881 (patch) | |
tree | 7e63407cde2547758cfdbe16a213064ea4427f16 /guides | |
parent | e0d28efe5e0fb2140c927cea846250ff397ab9d3 (diff) | |
parent | 277355ade04eabd56fa28c5a7ffa617bbf73b31e (diff) | |
download | rails-17a39c841d7ee9508da2b06eec72206ad3510881.tar.gz rails-17a39c841d7ee9508da2b06eec72206ad3510881.tar.bz2 rails-17a39c841d7ee9508da2b06eec72206ad3510881.zip |
Merge pull request #16722 from yui-knk/fix/guides_association_basics2
[ci skip] Fix typo of `collection_singular_ids=` method.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/association_basics.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index bbff35e4f3..c9e0fcd939 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -1323,7 +1323,7 @@ When you declare a `has_many` association, the declaring class automatically gai * `collection.destroy(object, ...)` * `collection=(objects)` * `collection_singular_ids` -* `collection_singular_ids=ids` +* `collection_singular_ids=(ids)` * `collection.clear` * `collection.empty?` * `collection.size` @@ -1411,7 +1411,7 @@ The `collection_singular_ids` method returns an array of the ids of the objects @order_ids = @customer.order_ids ``` -##### `collection_singular_ids=ids` +##### `collection_singular_ids=(ids)` The `collection_singular_ids=` method makes the collection contain only the objects identified by the supplied primary key values, by adding and deleting as appropriate. @@ -1812,7 +1812,7 @@ When you declare a `has_and_belongs_to_many` association, the declaring class au * `collection.destroy(object, ...)` * `collection=(objects)` * `collection_singular_ids` -* `collection_singular_ids=ids` +* `collection_singular_ids=(ids)` * `collection.clear` * `collection.empty?` * `collection.size` @@ -1907,7 +1907,7 @@ The `collection_singular_ids` method returns an array of the ids of the objects @assembly_ids = @part.assembly_ids ``` -##### `collection_singular_ids=ids` +##### `collection_singular_ids=(ids)` The `collection_singular_ids=` method makes the collection contain only the objects identified by the supplied primary key values, by adding and deleting as appropriate. |