From 29813771b6407683d2ad1c6a11ea0586add5dcd7 Mon Sep 17 00:00:00 2001 From: Samuel Seay Date: Mon, 5 Sep 2016 20:57:27 +1200 Subject: Don't compile application environment config. --- lib/recaptcha.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/recaptcha.ex') diff --git a/lib/recaptcha.ex b/lib/recaptcha.ex index ed7e9b7..9e6be0f 100644 --- a/lib/recaptcha.ex +++ b/lib/recaptcha.ex @@ -5,7 +5,6 @@ defmodule Recaptcha do See the [documentation](https://developers.google.com/recaptcha/docs/verify) for more details. """ - @secret Application.get_env(:recaptcha, :secret) @http_client Application.get_env(:recaptcha, :http_client, Recaptcha.Http) @doc """ @@ -47,7 +46,7 @@ defmodule Recaptcha do defp request_body(response, options) do body_options = Keyword.take(options, [:remote_ip, :secret]) - application_options = [secret: @secret] + application_options = [secret: Application.get_env(:recaptcha, :secret)] # override application secret with options secret if it exists application_options -- cgit v1.2.1