mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
fix: only impl Phoenix.HTML.Safe if it hasn't already been
This commit is contained in:
parent
b64cd13941
commit
75f07d1235
1 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
unless Phoenix.HTML.Safe.impl_for(Decimal) do
|
||||
defimpl Phoenix.HTML.Safe, for: Decimal do
|
||||
defdelegate to_iodata(data), to: Decimal, as: :to_string
|
||||
end
|
||||
|
@ -5,3 +6,4 @@ end
|
|||
defimpl Phoenix.Param, for: Decimal do
|
||||
defdelegate to_param(data), to: Decimal, as: :to_string
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue