1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #34444 from esparta/fix_typo_association_basics

fix typo on association_basics.md [ci skip]
This commit is contained in:
Ryuta Kamizono 2018-11-14 17:20:43 +09:00 committed by GitHub
commit 79d2d33489
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1662,7 +1662,7 @@ Controls what happens to the associated objects when their owner is destroyed:
* `:restrict_with_exception` causes an `ActiveRecord::DeleteRestrictionError` exception to be raised if there are any associated records
* `:restrict_with_error` causes an error to be added to the owner if there are any associated objects
The `:destroy` and `:delete_all` options also affect the samantics of the `collection.delete` and `collection=` methods by causing them to destroy associated objects when they are removed from the collection.
The `:destroy` and `:delete_all` options also affect the semantics of the `collection.delete` and `collection=` methods by causing them to destroy associated objects when they are removed from the collection.
##### `:foreign_key`