Skip to content

Commit

Permalink
fixed adding error message
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Jun 2, 2009
1 parent 6d65650 commit 6fe11d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recaptcha.rb
Expand Up @@ -69,7 +69,7 @@ def verify_recaptcha(options = {})
if Rails::VERSION::MAJOR == 2 and Rails::VERSION::MINOR >= 2
model.errors.add_to_base I18n.translate("#{model.class.name.underscore}.captcha", :scope => %w(activerecord errors models), :default => options[:message] ||= "Captcha response is incorrect, please try again.")
else
model.errors.add_to_base options[:message] ||= "Captcha response is incorrect, please try again."
model.errors.add_to_base options[:message] || "Captcha response is incorrect, please try again."
end
end
return false
Expand Down

0 comments on commit 6fe11d8

Please sign in to comment.