Module: ReCaptcha

Extended by:
Configurable
Defined in:
lib/re_captcha.rb,
lib/re_captcha/api.rb,
lib/re_captcha/client.rb,
lib/re_captcha/engine.rb,
lib/re_captcha/helpers.rb,
lib/re_captcha/version.rb,
lib/re_captcha/exceptions.rb,
lib/re_captcha/application.rb,
lib/re_captcha/configurable.rb,
lib/re_captcha/configuration.rb,
lib/re_captcha/rails/helpers.rb

Defined Under Namespace

Modules: API, Application, Configurable, Helpers, Rails Classes: Client, Configuration, ConfigurationError, Engine

Constant Summary collapse

MUTEX =
Mutex.new
VERSION =
'0.2.1'.freeze

Class Method Summary collapse

Methods included from Configurable

configuration, configure

Class Method Details

.clientObject



10
11
12
13
14
# File 'lib/re_captcha.rb', line 10

def self.client
  MUTEX.synchronize do
    @client ||= ReCaptcha::Client.new(configuration)
  end
end