mirror of
https://github.com/sloanelybutsurely/typeid-elixir.git
synced 2025-05-19 19:52:54 -04:00
Adds Phoenix.Param implementation for TypeID
This commit is contained in:
parent
dd8f957106
commit
a5e45558f2
1 changed files with 3 additions and 0 deletions
3
lib/type_id/phoenix_param.ex
Normal file
3
lib/type_id/phoenix_param.ex
Normal file
|
@ -0,0 +1,3 @@
|
|||
defimpl Phoenix.Param, for: TypeID do
|
||||
def to_param(type_id), do: TypeID.to_string(type_id)
|
||||
end
|
Loading…
Reference in a new issue