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

Merge pull request #42571 from p8/guides-fix-spelling-of-assocation

Fix spelling of associations in guides
This commit is contained in:
Ryuta Kamizono 2021-06-23 17:55:04 +09:00 committed by GitHub
commit 61d7b79016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,7 +523,7 @@ add_belongs_to :taggings, :taggable, polymorphic: true
```
The polymorphic option will create two columns on the taggings table which can
be used for polymorphic assocations: `taggable_type` and `taggable_id`.
be used for polymorphic associations: `taggable_type` and `taggable_id`.
A foreign key can be created with the the `foreign_key` option.