mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
Update transformer.ex (#179)
This commit is contained in:
parent
a890914e36
commit
63483822d6
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ defmodule Ash.Dsl.Transformer do
|
|||
Map.update(dsl, :persist, %{key => value}, &Map.put(&1, key, value))
|
||||
end
|
||||
|
||||
def get_persisted(dsl, key, default) do
|
||||
def get_persisted(dsl, key, default \\ nil) do
|
||||
dsl
|
||||
|> Map.get(:persist, %{})
|
||||
|> Map.get(key, default)
|
||||
|
|
Loading…
Reference in a new issue