aboutsummaryrefslogtreecommitdiff
path: root/lib/recaptcha/template.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/recaptcha/template.ex')
-rw-r--r--lib/recaptcha/template.ex4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/recaptcha/template.ex b/lib/recaptcha/template.ex
index 28db29c..008a63d 100644
--- a/lib/recaptcha/template.ex
+++ b/lib/recaptcha/template.ex
@@ -11,15 +11,13 @@ defmodule Recaptcha.Template do
EEx.function_from_file :defp, :render_template, "lib/template.html.eex", [:assigns]
- @public_key Application.get_env(:recaptcha, :public_key)
-
@doc """
Returns a string with reCAPTCHA code
To convert the string to html code, use Phoenix.HTML.Raw/1 method
"""
def display(options \\ []) do
- public_key = options[:public_key] || @public_key
+ public_key = options[:public_key] || Application.get_env(:recaptcha, :public_key)
render_template(public_key: public_key, options: options)
end
end