added a condition on project -> members association so that only active users are considered as members
git-svn-id: http://redmine.rubyforge.org/svn/trunk@116 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d81a135704
commit
718de6c7fd
|
@ -17,7 +17,7 @@
|
|||
|
||||
class Project < ActiveRecord::Base
|
||||
has_many :versions, :dependent => true, :order => "versions.effective_date DESC, versions.name DESC"
|
||||
has_many :members, :dependent => true
|
||||
has_many :members, :dependent => true, :include => :user, :conditions => "users.status=#{User::STATUS_ACTIVE}"
|
||||
has_many :users, :through => :members
|
||||
has_many :custom_values, :dependent => true, :as => :customized
|
||||
has_many :issues, :dependent => true, :order => "issues.created_on DESC", :include => [:status, :tracker]
|
||||
|
|
Loading…
Reference in New Issue