Skip to content

Commit

Permalink
Fixes wrong resource_plural_name option name fetched in CRUD
Browse files Browse the repository at this point in the history
  • Loading branch information
szsoppa committed Dec 8, 2023
1 parent f967e89 commit 7c2ac28
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 7c2ac28

Please sign in to comment.