From 7020ea76bb24626a14daf189fdc6abc0776ed665 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Tue, 5 Mar 2024 09:29:38 +0200 Subject: [PATCH] attach_scope parent object --- docs/3.0/common/associations_attach_scope_option_common.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/3.0/common/associations_attach_scope_option_common.md b/docs/3.0/common/associations_attach_scope_option_common.md index bf9f08a0..a332652a 100644 --- a/docs/3.0/common/associations_attach_scope_option_common.md +++ b/docs/3.0/common/associations_attach_scope_option_common.md @@ -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