Sha256: bdc32573a025fedc6e73a4eb5e4ca5ac8d5ab3059429890a71547d30efd6754d

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

module Captcha
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_kit-0.0.10 app/helpers/kit/captcha.rb