refactor: rename definition to task

This commit is contained in:
Moritz Böhme 2025-04-04 20:43:24 +02:00
parent ddf42409d5
commit 2850c18005
2 changed files with 5 additions and 3 deletions

View file

@ -2,6 +2,6 @@ defmodule Putzplan.Tasks do
use Ash.Domain
resources do
resource Putzplan.Tasks.Definition
resource Putzplan.Tasks.Task
end
end

View file

@ -1,6 +1,8 @@
defmodule Putzplan.Tasks.Definition do
defmodule Putzplan.Tasks.Task do
# 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
# Use the default implementation of the :read action