mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 13:24:14 +12:00
14 lines
324 B
Elixir
14 lines
324 B
Elixir
|
defmodule AshGraphql.Resource.Subscription.ConfigFunction do
|
||
|
use AshGraphql.Resource.Subscription.Config
|
||
|
|
||
|
@impl true
|
||
|
def config(changeset, [fun: {m, f, a}], context) do
|
||
|
apply(m, f, [changeset, context | a])
|
||
|
end
|
||
|
|
||
|
@impl true
|
||
|
def config(changeset, [fun: fun], context) do
|
||
|
fun.(changeset, context)
|
||
|
end
|
||
|
end
|