summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-25 07:40:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-25 07:40:46 +0000
commit1fad29bc146bcd939a50dcfe29ad7f258eaf84a8 (patch)
treef2465176724e3dc394659659d0c2fc8ab3bf95e1 /app
parent214e737ee02c01edc5bff0e9d9bbf59fa870a4fa (diff)
downloadredmine-1fad29bc146bcd939a50dcfe29ad7f258eaf84a8.tar.gz
redmine-1fad29bc146bcd939a50dcfe29ad7f258eaf84a8.zip
Merged r14179 (#19569).
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14210 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/member.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index b76e37dbd..72a92db53 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -19,7 +19,7 @@ class Member < ActiveRecord::Base
belongs_to :user
belongs_to :principal, :foreign_key => 'user_id'
has_many :member_roles, :dependent => :destroy
- has_many :roles, :through => :member_roles
+ has_many :roles, lambda {uniq}, :through => :member_roles
belongs_to :project
validates_presence_of :principal, :project