diff options
author | Jared Beck <jared@jaredbeck.com> | 2016-05-26 12:49:31 -0400 |
---|---|---|
committer | Jared Beck <jared@jaredbeck.com> | 2016-05-26 17:05:32 -0400 |
commit | f95fe79f27c3bb5b3ca26ef876d07eed70a83f25 (patch) | |
tree | e3ae954a5af54adebdd2408b76cbe299758e89ed /guides | |
parent | 28a7c98fe665e40f40d4c69c0729ad0c0436bef2 (diff) | |
download | rails-f95fe79f27c3bb5b3ca26ef876d07eed70a83f25.tar.gz rails-f95fe79f27c3bb5b3ca26ef876d07eed70a83f25.tar.bz2 rails-f95fe79f27c3bb5b3ca26ef876d07eed70a83f25.zip |
Docs: Clarify when assoc. methods persist
Because I can never remember if `collection_singular_ids=` persists
or not (it does).
[ci skip]
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 4977d4f30e..3993fdb1dd 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -1477,7 +1477,7 @@ WARNING: Objects will _always_ be removed from the database, ignoring the `:depe ##### `collection=(objects)` -The `collection=` method makes the collection contain only the supplied objects, by adding and deleting as appropriate. +The `collection=` method makes the collection contain only the supplied objects, by adding and deleting as appropriate. The changes are persisted to the database. ##### `collection_singular_ids` @@ -1489,7 +1489,7 @@ The `collection_singular_ids` method returns an array of the ids of the objects ##### `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. +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. The changes are persisted to the database. ##### `collection.clear` @@ -2006,7 +2006,7 @@ The `collection.destroy` method removes one or more objects from the collection ##### `collection=(objects)` -The `collection=` method makes the collection contain only the supplied objects, by adding and deleting as appropriate. +The `collection=` method makes the collection contain only the supplied objects, by adding and deleting as appropriate. The changes are persisted to the database. ##### `collection_singular_ids` @@ -2018,7 +2018,7 @@ The `collection_singular_ids` method returns an array of the ids of the objects ##### `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. +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. The changes are persisted to the database. ##### `collection.clear` |