Sha256: 703a56fcb55cdecddcf0917f0e42d5d6cf2c2bb1749aa22ea532b4bdbe0b27b8
Contents?: true
Size: 318 Bytes
Versions: 12
Compression:
Stored size: 318 Bytes
Contents
require 'ruby-recaptcha' class ApplicationController include ReCaptcha::AppHelper private def save_if_not_spam(obj, params) (!visitor.is_anon? || validate_recap(params, obj.errors, :rcc_pub => current_site.dyn['recaptcha_pub'], :rcc_priv => current_site.dyn['recaptcha_priv'])) && obj.save end end
Version data entries
12 entries across 12 versions & 1 rubygems