From d3ff86b1eb320474c7321164a5567637dde41184 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Jul 2016 11:52:20 +0000 Subject: [PATCH] Don't use add_on_empty. git-svn-id: http://svn.redmine.org/redmine/trunk@15684 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 0c6a8868e..6e7cf258b 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -193,6 +193,6 @@ class Member < ActiveRecord::Base protected def validate_role - errors.add_on_empty :role if member_roles.empty? && roles.empty? + errors.add(:role, :empty) if member_roles.empty? && roles.empty? end end -- 2.39.5