module RailsCaptcha::Model::ActMethods

Public Instance Methods

acts_as_captcha(options={}) click to toggle source
# File lib/rails_captcha/captcha/model.rb, line 9
def acts_as_captcha(options={})
  extend ClassMethods
  include InstanceMethods
  attr_reader :captcha, :known_captcha
  cattr_accessor :captcha_options
  self.captcha_options = options
  validate :captcha_must_match_known_captcha
end