Fix typo in guide for scopes for has_and_belongs_to_many association

This commit is contained in:
Andrey Sobolev 2022-02-15 17:27:11 +03:00
parent efd066c740
commit 1018a5a7fb
1 changed files with 1 additions and 1 deletions

View File

@ -2492,7 +2492,7 @@ class Parts < ApplicationRecord
end
```
If you use a hash-style `where`, then record creation via this association will be automatically scoped using the hash. In this case, using `@parts.assemblies.create` or `@parts.assemblies.build` will create orders where the `factory` column has the value "Seattle".
If you use a hash-style `where`, then record creation via this association will be automatically scoped using the hash. In this case, using `@parts.assemblies.create` or `@parts.assemblies.build` will create assemblies where the `factory` column has the value "Seattle".
##### `extending`