Module: ReverseCaptcha::Model::ClassMethods

Defined in:
lib/reverse_captcha/model.rb

Instance Method Summary collapse

Instance Method Details

#captcha(attribute) ⇒ Object



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

def captcha(attribute)
  self.captcha_attribute = attribute
  attr_accessor attribute
  validate :humanity
end