From 7c2ac2875a684876d98f0fb4a9fca92c71eb65b9 Mon Sep 17 00:00:00 2001
From: Szymon Soppa <szymon@curiosum.com>
Date: Fri, 8 Dec 2023 19:31:49 +0100
Subject: [PATCH] Fixes wrong resource_plural_name option name fetched in CRUD

---
 lib/contexted/crud.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/contexted/crud.ex b/lib/contexted/crud.ex
index 6973275..372baae 100644
--- a/lib/contexted/crud.ex
+++ b/lib/contexted/crud.ex
@@ -49,7 +49,7 @@ defmodule Contexted.CRUD do
     schema = Keyword.fetch!(opts, :schema)
 
     exclude = Keyword.get(opts, :exclude, [])
-    plural_resource_name = Keyword.get(opts, :resource_plural_name, nil)
+    plural_resource_name = Keyword.get(opts, :plural_resource_name, nil)
 
     resource_name = schema |> Module.split() |> List.last() |> Macro.underscore()