fix: remove the as option

This commit is contained in:
Zach Daniel 2021-03-14 17:50:04 -04:00
parent 4df4e9a070
commit 0109696d54
6 changed files with 2 additions and 11 deletions

View file

@ -19,9 +19,9 @@ defmodule Ash.Api.Dsl do
type: :atom,
required: false,
doc: """
A short name for the resource. Defaults to the last part of the module underscored, e.g `SpecialThing` -> `:special_thing`.
A short name for the resource.
Can be used in calls to Api modules, e.g `Api.read(:special_thing)` and also customizes action helpers defined on the Api, e.g `Api.special_thing_create(...)`
Can be used in calls to Api modules, e.g `Api.read(:special_thing)`.
"""
],
resource: [

View file

@ -4,7 +4,6 @@ defmodule Ash.Resource.Actions.Create do
:name,
:primary?,
:description,
:as,
accept: nil,
arguments: [],
changes: [],

View file

@ -6,7 +6,6 @@ defmodule Ash.Resource.Actions.Destroy do
:primary?,
:soft?,
:description,
:as,
arguments: [],
accept: nil,
changes: [],

View file

@ -7,7 +7,6 @@ defmodule Ash.Resource.Actions.Read do
:primary?,
:filter,
:description,
:as,
arguments: [],
preparations: [],
type: :read

View file

@ -7,11 +7,6 @@ defmodule Ash.Resource.Actions.SharedOptions do
required: true,
doc: "The name of the action"
],
as: [
type: :atom,
doc:
"Overwrite the name of the helper function added onto the Api module. The helper defaults to <resource_name>_<action_name>"
],
primary?: [
type: :boolean,
default: false,

View file

@ -5,7 +5,6 @@ defmodule Ash.Resource.Actions.Update do
:name,
:primary?,
:description,
:as,
accept: nil,
arguments: [],
changes: [],