From f3df31cae4521605bbd403d50167749d32f32e16 Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 17 Jul 2017 02:44:27 +0100 Subject: [PATCH] Pass 'persistent: true' to Application.put_env/4, so that the new config will survive application load and reload. --- lib/deferred_config.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/deferred_config.ex b/lib/deferred_config.ex index b0ab201..0a9740d 100644 --- a/lib/deferred_config.ex +++ b/lib/deferred_config.ex @@ -109,11 +109,11 @@ defmodule DeferredConfig do end) end - @doc "`Application.put_env/3` for config kvlist" + @doc "`Application.put_env/4` for config kvlist" def apply_transformed_cfg!(kvlist, app) do kvlist |> Enum.each(fn {k,v} -> - Application.put_env(app, k, v) + Application.put_env(app, k, v, persistent: true) end) end