Module: Captcha

Defined in:
app/helpers/kit/captcha.rb

Instance Method Summary collapse

Instance Method Details

#captcha_tagObject



2
3
4
5
6
7
8
9
# File 'app/helpers/kit/captcha.rb', line 2

def captcha_tag
  return "" if rad.test?

  captcha_html = recaptcha_tags public_key: config.recaptcha[:public_key],
                 display: {theme: :custom, custom_theme_widget: 'recaptcha_widget'}

  render "/kit/captcha", locals: {captcha_html: captcha_html}
end