Module: Recaptcha::Adapters::ViewMethods

Defined in:
lib/recaptcha/adapters/view_methods.rb

Instance Method Summary collapse

Instance Method Details

#invisible_recaptcha_tags(options = {}) ⇒ Object

Renders a reCAPTCHA v2 [Invisible reCAPTCHA](developers.google.com/recaptcha/docs/invisible)



21
22
23
# File 'lib/recaptcha/adapters/view_methods.rb', line 21

def invisible_recaptcha_tags(options = {})
  ::Recaptcha::Helpers.invisible_recaptcha_tags(options)
end

#recaptcha_tags(options = {}) ⇒ Object

Renders a reCAPTCHA [v2 Checkbox](developers.google.com/recaptcha/docs/display) widget



16
17
18
# File 'lib/recaptcha/adapters/view_methods.rb', line 16

def recaptcha_tags(options = {})
  ::Recaptcha::Helpers.recaptcha_tags(options)
end

#recaptcha_v3(options = {}) ⇒ Object

Renders a [reCAPTCHA v3](developers.google.com/recaptcha/docs/v3) script and (by default) a hidden input to submit the response token. You can also call the functions directly if you prefer. You can use ‘Recaptcha::Helpers.recaptcha_v3_execute_function_name(action)` to get the name of the function to call.



11
12
13
# File 'lib/recaptcha/adapters/view_methods.rb', line 11

def recaptcha_v3(options = {})
  ::Recaptcha::Helpers.recaptcha_v3(options)
end