AshGrant.Transformers.MergeDomainConfig (AshGrant v0.17.0)

Copy Markdown View Source

Spark DSL transformer that merges domain-level AshGrant configuration into resources.

This transformer runs on resources (registered in the AshGrant extension) and copies resolver and scope definitions from the domain if the domain uses AshGrant.Domain.

Merge Rules

  • Resolver: Inherited from domain only if the resource has no resolver.
  • Scopes: Domain scopes are added to the resource unless the resource defines a scope with the same name (resource wins).

This transformer runs before all other AshGrant transformers so that downstream consumers (Info, Check, FilterCheck, etc.) see the merged state.

Summary

Functions

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.