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

Version Path
zena-0.16.9 bricks/captcha/patch/application_controller.rb
zena-0.16.8 bricks/captcha/patch/application_controller.rb
zena-0.16.7 bricks/captcha/patch/application_controller.rb
zena-0.16.6 bricks/captcha/patch/application_controller.rb
zena-0.16.5 bricks/captcha/patch/application_controller.rb
zena-0.16.4 bricks/captcha/patch/application_controller.rb
zena-0.16.3 bricks/captcha/patch/application_controller.rb
zena-0.16.2 bricks/captcha/patch/application_controller.rb
zena-0.16.1 bricks/captcha/patch/application_controller.rb
zena-0.16.0 bricks/captcha/patch/application_controller.rb
zena-0.15.2 bricks/captcha/patch/application_controller.rb
zena-0.15.1 bricks/captcha/patch/application_controller.rb