Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix add_to_base call for simple-captcha

  • Loading branch information...
commit 9b600f9f66bc307a620be1f88ea8a4fabc2601f9 1 parent 4f93c5a
@JediFreeman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/simple_captcha/active_record.rb
View
2  lib/simple_captcha/active_record.rb
@@ -59,7 +59,7 @@ def is_captcha_valid?
return true
else
message = simple_captcha_options[:message] || I18n.t(self.class.model_name.downcase, :scope => [:simple_captcha, :message], :default => :default)
- simple_captcha_options[:add_to_base] ? errors.add_to_base(message) : errors.add(:captcha, message)
+ simple_captcha_options[:add_to_base] ? errors.add(:base, message) : errors.add(:captcha, message)
return false
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.