diff --git a/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md b/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md index f4831e1..1711078 100644 --- a/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md +++ b/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md @@ -204,24 +204,11 @@ lib/example ├── accounts | ├── accounts.ex | └── resources -│   ├── registry.ex │   ├── token.ex |   └── user.ex ... ``` -**lib/example/accounts/accounts.ex** - -```elixir -defmodule Example.Accounts do - use Ash.Api - - resources do - registry Example.Accounts.Registry - end -end -``` - **lib/example/accounts/resources/user.ex** ```elixir @@ -316,18 +303,16 @@ defmodule Example.Accounts.Token do end ``` -Next, let's define our registry: - -**lib/example/accounts/registry.ex** +**lib/example/accounts/accounts.ex** ```elixir -defmodule Example.Accounts.Registry do - use Ash.Registry, extensions: [Ash.Registry.ResourceValidations] +defmodule Example.Accounts do + use Ash.Api - entries do - entry Example.Accounts.User - entry Example.Accounts.Token - end + resources do + resource Example.Accounts.User + resource Example.Accounts.Token + end end ``` diff --git a/test/support/accounts.ex b/test/support/accounts.ex index d3387c4..6cf295d 100644 --- a/test/support/accounts.ex +++ b/test/support/accounts.ex @@ -3,6 +3,7 @@ defmodule Example.Accounts do use Ash.Api, otp_app: :ash_authentication_phoenix resources do - registry Example.Accounts.Registry + resource Example.Accounts.User + resource Example.Accounts.Token end end diff --git a/test/support/accounts/registry.ex b/test/support/accounts/registry.ex deleted file mode 100644 index 498440a..0000000 --- a/test/support/accounts/registry.ex +++ /dev/null @@ -1,9 +0,0 @@ -defmodule Example.Accounts.Registry do - @moduledoc false - use Ash.Registry, extensions: [Ash.Registry.ResourceValidations] - - entries do - entry Example.Accounts.User - entry Example.Accounts.Token - end -end