mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: remove the as
option
This commit is contained in:
parent
4df4e9a070
commit
0109696d54
6 changed files with 2 additions and 11 deletions
|
@ -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: [
|
||||
|
|
|
@ -4,7 +4,6 @@ defmodule Ash.Resource.Actions.Create do
|
|||
:name,
|
||||
:primary?,
|
||||
:description,
|
||||
:as,
|
||||
accept: nil,
|
||||
arguments: [],
|
||||
changes: [],
|
||||
|
|
|
@ -6,7 +6,6 @@ defmodule Ash.Resource.Actions.Destroy do
|
|||
:primary?,
|
||||
:soft?,
|
||||
:description,
|
||||
:as,
|
||||
arguments: [],
|
||||
accept: nil,
|
||||
changes: [],
|
||||
|
|
|
@ -7,7 +7,6 @@ defmodule Ash.Resource.Actions.Read do
|
|||
:primary?,
|
||||
:filter,
|
||||
:description,
|
||||
:as,
|
||||
arguments: [],
|
||||
preparations: [],
|
||||
type: :read
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -5,7 +5,6 @@ defmodule Ash.Resource.Actions.Update do
|
|||
:name,
|
||||
:primary?,
|
||||
:description,
|
||||
:as,
|
||||
accept: nil,
|
||||
arguments: [],
|
||||
changes: [],
|
||||
|
|
Loading…
Reference in a new issue