Skip to content

Commit

Permalink
Merge branch 'main' of github.com:avo-hq/avodocs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Mar 7, 2024
2 parents 676ffde + f7f023b commit bdd84df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/3.0/common/associations_attach_scope_option_common.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ field :user,
attach_scope: -> { query.non_admins }
```

Pass in a block where you attach scopes to the `query` object. The block is executed in the [`ExecutionContext`](./../execution-context).
Pass in a block where you attach scopes to the `query` object and `parent` object, which is the actual record where you want to assign the association. The block is executed in the [`ExecutionContext`](./../execution-context).
:::

:::warning
Expand Down

0 comments on commit bdd84df

Please sign in to comment.