Skip to content

Commit

Permalink
Merge pull request #37 from curiosum-dev/fix/wrong-cruid-resource-plu…
Browse files Browse the repository at this point in the history
…ral-name-option

Fixes wrong resource_plural_name option name fetched in CRUD
  • Loading branch information
szsoppa authored Dec 8, 2023
2 parents f967e89 + 7c2ac28 commit 39c8f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contexted/crud.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 39c8f1b

Please sign in to comment.