Sha256: f4e45fc3becac9f67d9cca617397ea79155306ba27cedb252bd051135d619c07

Contents?: true

Size: 469 Bytes

Versions: 6

Compression:

Stored size: 469 Bytes

Contents

module YandexCaptcha
  module Helpers
    module Base

      def self.included(base)
        base.send :include, InstanceMethods
      end

      module InstanceMethods
        def spam? *args
          YandexCaptcha::Verify.spam? *args
        end

        def get_captcha *args
          YandexCaptcha::Verify.get_captcha *args
        end

        def valid_captcha? *args
          YandexCaptcha::Verify.valid_captcha? *args
        end
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yandex_captcha-0.4.3.8 lib/yandex_captcha/helpers/base.rb
yandex_captcha-0.4.3.7 lib/yandex_captcha/helpers/base.rb
yandex_captcha-0.4.3.6 lib/yandex_captcha/helpers/base.rb
yandex_captcha-0.4.3.5 lib/yandex_captcha/helpers/base.rb
yandex_captcha-0.4.3.4 lib/yandex_captcha/helpers/base.rb
yandex_captcha-0.4.3.3 lib/yandex_captcha/helpers/base.rb