mirror of
https://github.com/ash-project/ash.git
synced 2024-09-21 05:53:06 +12:00
ff756b72a7
A deprecation warning will be shown at compile time to illustrate a change from listing all of your resources in an api to listing them in a registry and connecting that registry to the api
15 lines
262 B
Elixir
15 lines
262 B
Elixir
defmodule Ash.Test.Resource.ApiTest do
|
|
@moduledoc false
|
|
use ExUnit.Case, async: true
|
|
|
|
defmacrop defposts(do: body) do
|
|
quote do
|
|
defmodule Post do
|
|
@moduledoc false
|
|
use Ash.Resource
|
|
|
|
unquote(body)
|
|
end
|
|
end
|
|
end
|
|
end
|