Module: InvisibleCaptcha

Defined in:
lib/invisible_captcha.rb,
lib/invisible_captcha/version.rb,
lib/invisible_captcha/validator.rb,
lib/invisible_captcha/form_helpers.rb,
lib/invisible_captcha/view_helpers.rb,
lib/invisible_captcha/controller_methods.rb

Defined Under Namespace

Modules: ControllerMethods, FormHelpers, ViewHelpers Classes: InvisibleCaptchaValidator

Constant Summary collapse

VERSION =
"0.6.5"

Class Method Summary collapse

Class Method Details

.fake_fieldObject



29
30
31
# File 'lib/invisible_captcha.rb', line 29

def self.fake_field
  self.fake_fields.sample
end

.setup {|_self| ... } ⇒ Object

InvisibleCaptcha.setup do |ic|

ic.sentence_for_humans = 'Another sentence'
ic.error_message = 'Another error message'
ic.fake_fields << 'another_fake_field'

end

Yields:

  • (_self)

Yield Parameters:



25
26
27
# File 'lib/invisible_captcha.rb', line 25

def self.setup
  yield(self)
end