]> source.dussan.org Git - redmine.git/commitdiff
Merged r3929 from trunk.
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 19 Aug 2010 04:32:36 +0000 (04:32 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 19 Aug 2010 04:32:36 +0000 (04:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3979 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/member.rb

index 94751efb2d6be69e640f77d59fdf6d9e26ac444f..d840cfc3e79afbf99b96d1cdf0a3cdfec8baad5c 100644 (file)
@@ -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