philomena/lib/philomena_web/param.ex
liamwhite d1c893248d
Search navigation (#14)
* return hits from elasticsearch and add in sort param to templates

* use returned hits from elasticsearch for navigation

* mix format

* fix gallery pagination

* add missing fields to search help dropdown

* unused variable
2020-08-13 11:32:35 -04:00

11 lines
271 B
Elixir

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