lib/invisible_captcha/validator.rb in invisible_captcha-0.2.0 vs lib/invisible_captcha/validator.rb in invisible_captcha-0.4.1

- old
+ new

@@ -4,10 +4,10 @@ class InvisibleCaptchaValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) if robot_presence?(record, attribute) record.errors.clear - record.errors[:base] = "YOU ARE A ROBOT!!" + record.errors[:base] = InvisibleCaptcha.error_message end end private \ No newline at end of file