Module: ReverseCaptcha::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/reverse_captcha/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#captcha_attribute ⇒ Object
17 18 19 |
# File 'lib/reverse_captcha/model.rb', line 17 def captcha_attribute self.class.captcha_attribute end |
#spam? ⇒ Boolean
21 22 23 |
# File 'lib/reverse_captcha/model.rb', line 21 def spam? true unless send(captcha_attribute).blank? end |