Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/contexted/crud.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule Contexted.CRUD do
resource_name: resource_name,
plural_resource_name: plural_resource_name
] do
unless :list in exclude do
if :list not in exclude do
function_name = String.to_atom("list_#{plural_resource_name}")

@doc """
Expand All @@ -82,7 +82,7 @@ defmodule Contexted.CRUD do
end
end

unless :get in exclude do
if :get not in exclude do
function_name = String.to_atom("get_#{resource_name}")

@doc """
Expand Down Expand Up @@ -118,7 +118,7 @@ defmodule Contexted.CRUD do
end
end

unless :create in exclude do
if :create not in exclude do
function_name = String.to_atom("create_#{resource_name}")

@doc """
Expand Down Expand Up @@ -160,7 +160,7 @@ defmodule Contexted.CRUD do
end
end

unless :update in exclude do
if :update not in exclude do
function_name = String.to_atom("update_#{resource_name}")

@doc """
Expand Down Expand Up @@ -203,7 +203,7 @@ defmodule Contexted.CRUD do
end
end

unless :delete in exclude do
if :delete not in exclude do
function_name = String.to_atom("delete_#{resource_name}")

@doc """
Expand Down Expand Up @@ -233,7 +233,7 @@ defmodule Contexted.CRUD do
end
end

unless :change in exclude do
if :change not in exclude do
function_name = String.to_atom("change_#{resource_name}")

@doc """
Expand Down
Loading