mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
improvement: support {:ignore, changeset}
from error handlers
improvement: add read action metadata
This commit is contained in:
parent
306ecd01e4
commit
7dfcd2d3dd
3 changed files with 7 additions and 0 deletions
|
@ -3237,6 +3237,9 @@ defmodule Ash.Changeset do
|
|||
:ignore ->
|
||||
changeset
|
||||
|
||||
{:ignore, changeset} ->
|
||||
changeset
|
||||
|
||||
%__MODULE__{} = changeset ->
|
||||
%{changeset | valid?: false}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ defmodule Ash.Resource.Actions.Read do
|
|||
arguments: [],
|
||||
preparations: [],
|
||||
touches_resources: [],
|
||||
metadata: [],
|
||||
type: :read
|
||||
]
|
||||
|
||||
|
|
|
@ -479,6 +479,9 @@ defmodule Ash.Resource.Dsl do
|
|||
],
|
||||
pagination: [
|
||||
@pagination
|
||||
],
|
||||
metadata: [
|
||||
@metadata
|
||||
]
|
||||
],
|
||||
args: [:name]
|
||||
|
|
Loading…
Reference in a new issue