From fe07a6b5ea2d60aeb58eb6411e6732ea66eb08ac Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 27 Sep 2021 19:21:04 -0400 Subject: [PATCH] Phoenix implemented Param for float (phoenixframework/phoenix#4322) --- lib/philomena_web/param.ex | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 lib/philomena_web/param.ex diff --git a/lib/philomena_web/param.ex b/lib/philomena_web/param.ex deleted file mode 100644 index cac03736..00000000 --- a/lib/philomena_web/param.ex +++ /dev/null @@ -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