diff options
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 2 |
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 |