Browse files

fix add_to_base call for simple-captcha

  • Loading branch information...
1 parent 4f93c5a commit 9b600f9f66bc307a620be1f88ea8a4fabc2601f9 @JediFreeman committed Feb 21, 2012
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

0 comments on commit 9b600f9

Please sign in to comment.