|
|
> Based on administrate `0.11.0`
|
|
|
|
|
|
Alternatively you can use the gem [`administrate-field-scoped_has_many`](https://github.com/XPBytes/administrate-field-scoped_has_many).
|
|
|
|
|
|
The `BelongsTo` field has an option `scope`, but the `HasMany` always calls `associated_class.all`. This is an extension field to provide this functionality to `HasMany` associations.
|
|
|
|
|
|
```ruby
|
... | ... | |