Fix typo in guide for scopes for has_and_belongs_to_many association
This commit is contained in:
parent
efd066c740
commit
1018a5a7fb
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in New Issue