diff --git a/lib/ja_resource/repo.ex b/lib/ja_resource/repo.ex index 02fd8fb..54d703c 100644 --- a/lib/ja_resource/repo.ex +++ b/lib/ja_resource/repo.ex @@ -25,9 +25,9 @@ defmodule JaResource.Repo do @doc false def default_repo do quote do - if Application.get_env(:ja_resource, :repo) do + if Application.compile_env(:ja_resource, :repo) do def repo, do: Application.get_env(:ja_resource, :repo) - defoverridable [repo: 0] + defoverridable repo: 0 end end end