Get rid of Pleroma.Config in favor of Application

Discussed in https://git.pleroma.social/pleroma/pleroma/merge_requests/426#note_7232
This commit is contained in:
href 2018-11-06 11:34:34 +01:00
commit 2bc924ba45
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
7 changed files with 25 additions and 38 deletions

View file

@ -1,15 +0,0 @@
defmodule Pleroma.Config do
use Agent
def start_link(initial) do
Agent.start_link(fn -> initial end, name: __MODULE__)
end
def get(path) do
Agent.get(__MODULE__, Kernel, :get_in, [path])
end
def put(path, value) do
Agent.update(__MODULE__, Kernel, :put_in, [path, value])
end
end