debianize-mobilizon/lib/mobilizon/common-config.ex
2019-03-22 13:58:57 +01:00

8 lines
263 B
Elixir

defmodule Mobilizon.CommonConfig do
def registrations_open?(), do: instance_config() |> get_in([:registrations_open])
def instance_name(), do: instance_config() |> get_in([:name])
defp instance_config(), do: Application.get_env(:mobilizon, :instance)
end