module TextCaptcha

Attributes

enabled[RW]

You can disable TextCaptcha without having to remove all validations. This is specially good when running tests.

TextCaptcha.enabled = false

class Comment
  include ActiveModel::Validations
  include TextCaptcha::Validation

  validates_captcha
end

@comment = Comment.new
@comment.valid?
#=> true
encryption_key[RW]

Set the encryption key. This value will be used to generate an encrypted challenge id.