code format cleanup Principal class
git-svn-id: http://svn.redmine.org/redmine/trunk@12464 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c97986aa52
commit
61c6858b05
|
@ -25,7 +25,11 @@ class Principal < ActiveRecord::Base
|
|||
STATUS_LOCKED = 3
|
||||
|
||||
has_many :members, :foreign_key => 'user_id', :dependent => :destroy
|
||||
has_many :memberships, :class_name => 'Member', :foreign_key => 'user_id', :include => [ :project, :roles ], :conditions => "#{Project.table_name}.status<>#{Project::STATUS_ARCHIVED}", :order => "#{Project.table_name}.name"
|
||||
has_many :memberships, :class_name => 'Member',
|
||||
:foreign_key => 'user_id',
|
||||
:include => [:project, :roles],
|
||||
:conditions => "#{Project.table_name}.status<>#{Project::STATUS_ARCHIVED}",
|
||||
:order => "#{Project.table_name}.name"
|
||||
has_many :projects, :through => :memberships
|
||||
has_many :issue_categories, :foreign_key => 'assigned_to_id', :dependent => :nullify
|
||||
|
||||
|
|
Loading…
Reference in New Issue