221V 1 год назад
Родитель
Сommit
79b783b758
2 измененных файлов с 2 добавлено и 3 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 3
      src/nitro.erl

+ 1 - 0
CHANGELOG.md

@@ -9,6 +9,7 @@
   nitro:hte/1 -> nitro:html_encode/1  
   nitro:actions/0 -> erlang:get(actions)  
   nitro:actions/1 -> erlang:put(actions, Actions)  
+  nitro:config/3 -> application:get_env/3  
 ```
 * mv nitro_conv > nitro module  
 

+ 1 - 3
src/nitro.erl

@@ -7,7 +7,7 @@
 
 
 -export([atom/1, q/1, q/2, qc/1, qc/2,
-  config/3, pickle/1, depickle/1, unique_integer/0, temp_id/0,
+  pickle/1, depickle/1, unique_integer/0, temp_id/0,
   script/0, script/1, state/1, state/2,
   redirect/1, cookie_expire/1, cookie/2, cookie/3, cookies/0, cookie/1,
   f/1, f/2, coalesce/1,
@@ -33,8 +33,6 @@ q(Key, Def) -> case get(Key) of undefined -> Def; Val -> Val end.
 qc(Key) -> CX = get(context), qc(Key,CX#cx.req).
 qc(Key, Req) -> proplists:get_value(?MODULE:to_binary(Key),cowboy_req:parse_qs(Req)).
 
-config(App, Key, Default) -> application:get_env(App, Key, Default).
-
 
 %% Convert and Utils API