Module: Rack::Attack::Recaptcha::ClientHelper

Defined in:
lib/rack/attack/recaptcha/client_helper.rb

Instance Method Summary collapse

Instance Method Details

#recaptcha_tags_if_under_attack(options = {}) ⇒ Object



5
6
7
# File 'lib/rack/attack/recaptcha/client_helper.rb', line 5

def recaptcha_tags_if_under_attack(options={})
  recaptcha_tags(options) if request.env["rack.attack.use_recaptcha"]
end