Module: InvisibleCaptcha::ControllerExt::ClassMethods
- Defined in:
- lib/invisible_captcha/controller_ext.rb
Instance Method Summary collapse
Instance Method Details
#invisible_captcha(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/invisible_captcha/controller_ext.rb', line 6 def invisible_captcha( = {}) if respond_to?(:before_action) before_action() do detect_spam() end else before_filter() do detect_spam() end end end |