From 54a6ea703a586b43adcfbf3f9f0999c5cde378dc Mon Sep 17 00:00:00 2001 From: Olafur Arason Date: Thu, 22 Feb 2018 11:25:56 -0500 Subject: [PATCH] Elixir 1.6 doesn't work with the private init --- lib/expostal.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/expostal.ex b/lib/expostal.ex index f06c386..ad74ed1 100644 --- a/lib/expostal.ex +++ b/lib/expostal.ex @@ -8,7 +8,7 @@ defmodule Expostal do app = Mix.Project.config[:app] - defp init do + def init do path = :filename.join(:code.priv_dir(unquote(app)), 'expostal') :ok = :erlang.load_nif(path, 0) end