Skip to content

Commit

Permalink
add scope variables in scope option
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 27, 2024
1 parent 6953001 commit 9662e6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/3.0/common/associations_scope_option_common.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ field :user,
```

Pass in a block where you attach scopes to the `query` object. The block gets executed in the [`ExecutionContext`](./../execution-context).

With version 2.5.0, you'll also have access to the `parent` record so that you can use that to scope your associated models even better.

Starting with version 3.12, access to `resource` and `parent_resource` was additionally provided.
</Option>

0 comments on commit 9662e6d

Please sign in to comment.