mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
d1c893248d
* 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
11 lines
271 B
Elixir
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
|