diff --git a/lib/philomena/polls.ex b/lib/philomena/polls.ex index 13a4f37e..5dce91be 100644 --- a/lib/philomena/polls.ex +++ b/lib/philomena/polls.ex @@ -109,4 +109,6 @@ defmodule Philomena.Polls do |> where([p], p.id == ^poll_id and p.active_until > ^now) |> Repo.exists?() end + + def active?(_poll), do: false end