bricks/captcha/lib/bricks/captcha.rb in zena-1.0.0.rc2 vs bricks/captcha/lib/bricks/captcha.rb in zena-1.0.0.rc3
- old
+ new
@@ -6,11 +6,12 @@
module Captcha
module ControllerMethods
include ReCaptcha::AppHelper
private
- def save_if_not_spam(obj, params)
- (!visitor.is_anon? || validate_recap(params, obj.errors, :rcc_pub => current_site.prop['recaptcha_pub'], :rcc_priv => current_site.prop['recaptcha_priv'])) && obj.save
+ def should_save(obj, params)
+ !visitor.is_anon? ||
+ validate_recap(params, obj.errors, :rcc_pub => current_site.prop['recaptcha_pub'], :rcc_priv => current_site.prop['recaptcha_priv'])
end
end
module ViewMethods
include ReCaptcha::ViewHelper
\ No newline at end of file