From 2369b4628c94dd024ea3e0f378f9a553d0f0cdf5 Mon Sep 17 00:00:00 2001 From: Szymon Soppa Date: Fri, 26 May 2023 19:34:51 +0200 Subject: [PATCH] Adds missing change_{resource} documentation in CRUD --- lib/contexted/crud.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/contexted/crud.ex b/lib/contexted/crud.ex index 5bc90cb..6973275 100644 --- a/lib/contexted/crud.ex +++ b/lib/contexted/crud.ex @@ -36,6 +36,7 @@ defmodule Contexted.CRUD do - `update_{resource name}!` - Updates an existing resource with the provided attributes. Raises an error if update fails. - `delete_{resource name}` - Deletes an existing resource. Returns an `:ok` tuple with the resource or an `:error` tuple with changeset. - `delete_{resource name}!` - Deletes an existing resource. Raises an error if delete fails. + - `change_{resource name}` - Returns changeset for given resource. {resource name} and {plural resource name} will be replaced by the singular and plural forms of the resource name. """