# `AshGrant.Transformers.AddMaskingPreparation`
[🔗](https://github.com/jhlee111/ash_grant/blob/v0.14.1/lib/ash_grant/transformers/add_masking_preparation.ex#L1)

Adds the masking preparation to resources that have field groups with masking.

When any field group defines `mask` and `mask_with`, this transformer adds
`AshGrant.Preparations.ApplyMasking` as a resource-level preparation for
read actions. The preparation applies masked values at runtime based on
the actor's field group level.

# `after_compile?`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
