Sha256: 142f04472987625bb7a120bbcafde36ba2bc5c977daf3ae8b5f278f9f735ccb1
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
module YandexCaptcha module Helpers module Rails def captcha_tags(options = {}) error = options[:error] ||= ((defined? flash) ? flash[:captcha_error] : "") if options[:ajax] render partial: "yandex_captcha/captcha_ajax" else captcha = YandexCaptcha::Verify.get_captcha render partial: "yandex_captcha/captcha", locals: { captcha: captcha, error: error, noscript: options[:noscript] } if captcha end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yandex_captcha-0.4.3.1 | lib/yandex_captcha/helpers/rails.rb |
yandex_captcha-0.4.3 | lib/yandex_captcha/helpers/rails.rb |