Phoenix implemented Param for float (phoenixframework/phoenix#4322)

This commit is contained in:
byte[] 2021-09-27 19:21:04 -04:00
parent 5b6d941a36
commit fe07a6b5ea

View file

@ -1,11 +0,0 @@
defimpl Phoenix.Param, for: Float do
# Another Phoenix sadness:
#
# "By default, Phoenix implements this protocol for integers, binaries,
# atoms, and structs."
#
@spec to_param(float()) :: binary()
def to_param(term) do
Float.to_string(term)
end
end