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