refactor: rename definition to task
This commit is contained in:
parent
ddf42409d5
commit
2850c18005
2 changed files with 5 additions and 3 deletions
|
|
@ -2,6 +2,6 @@ defmodule Putzplan.Tasks do
|
||||||
use Ash.Domain
|
use Ash.Domain
|
||||||
|
|
||||||
resources do
|
resources do
|
||||||
resource Putzplan.Tasks.Definition
|
resource Putzplan.Tasks.Task
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
defmodule Putzplan.Tasks.Definition do
|
defmodule Putzplan.Tasks.Task do
|
||||||
# This turns this module into a resource
|
# This turns this module into a resource
|
||||||
use Ash.Resource, domain: Putzplan.Tasks
|
use Ash.Resource,
|
||||||
|
domain: Putzplan.Tasks,
|
||||||
|
data_layer: AshSqlite.DataLayer
|
||||||
|
|
||||||
actions do
|
actions do
|
||||||
# Use the default implementation of the :read action
|
# Use the default implementation of the :read action
|
||||||
Loading…
Add table
Add a link
Reference in a new issue