From 2850c180053bd4c9c7015f27fc72205421908975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 4 Apr 2025 20:43:24 +0200 Subject: [PATCH] refactor: rename definition to task --- lib/putzplan/tasks.ex | 2 +- lib/putzplan/tasks/{definition.ex => task.ex} | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename lib/putzplan/tasks/{definition.ex => task.ex} (85%) diff --git a/lib/putzplan/tasks.ex b/lib/putzplan/tasks.ex index 7d79493..a407b77 100644 --- a/lib/putzplan/tasks.ex +++ b/lib/putzplan/tasks.ex @@ -2,6 +2,6 @@ defmodule Putzplan.Tasks do use Ash.Domain resources do - resource Putzplan.Tasks.Definition + resource Putzplan.Tasks.Task end end diff --git a/lib/putzplan/tasks/definition.ex b/lib/putzplan/tasks/task.ex similarity index 85% rename from lib/putzplan/tasks/definition.ex rename to lib/putzplan/tasks/task.ex index 1a11202..1b0b9f8 100644 --- a/lib/putzplan/tasks/definition.ex +++ b/lib/putzplan/tasks/task.ex @@ -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