Module: InvisibleCaptcha

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

Defined Under Namespace

Modules: ControllerHelpers, FormHelpers, ViewHelpers Classes: InvisibleCaptchaValidator

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 << 'fake_field'

end

Yields:

  • (_self)

Yield Parameters:



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

def self.setup
  yield(self)
end