philomena/lib/philomena_web/views/commission_view.ex

9 lines
222 B
Elixir
Raw Permalink Normal View History

2019-11-18 01:09:15 +01:00
defmodule PhilomenaWeb.CommissionView do
use PhilomenaWeb, :view
2019-12-04 17:35:06 +01:00
alias Philomena.Commissions.Commission
def categories, do: [[key: "-", value: ""] | Commission.categories()]
def types, do: Commission.types()
2019-11-18 01:09:15 +01:00
end