Current section

Files

Jump to
ash_authentication lib ash_authentication strategies custom before_compileex
Raw

lib/ash_authentication/strategies/custom/before_compileex

defmodule AshAuthentication.Strategy.Custom.BeforeCompile do
@moduledoc false
alias Spark.Dsl
defmacro __before_compile__(env) do
quote generated: true do
use Dsl.Extension,
dsl_patches: [
%Dsl.Patch.AddEntity{
section_path: @patch_path,
entity: dsl()
}
]
end
end
end