From e00884bcca90eabf8de5f8371f0ba8773942a4b8 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Mon, 9 Aug 2010 05:10:00 +0000 Subject: [PATCH] Removed hard-coded english error message on failed Member creation git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3929 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/member.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/member.rb b/app/models/member.rb index 94751efb2..d840cfc3e 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -82,7 +82,7 @@ class Member < ActiveRecord::Base protected def validate - errors.add_to_base "Role can't be blank" if member_roles.empty? && roles.empty? + errors.add_on_empty :role if member_roles.empty? && roles.empty? end private