summaryrefslogtreecommitdiffstats
path: root/app/models/principal.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-26 09:19:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-26 09:19:56 +0000
commit61c6858b05367f64a5325ba2f9bc94aea7eb7dac (patch)
tree212b0a019363b1f51e63b19679d4648ae0adebb6 /app/models/principal.rb
parentc97986aa52238716482dae7c8338bc22432c766e (diff)
downloadredmine-61c6858b05367f64a5325ba2f9bc94aea7eb7dac.tar.gz
redmine-61c6858b05367f64a5325ba2f9bc94aea7eb7dac.zip
code format cleanup Principal class
git-svn-id: http://svn.redmine.org/redmine/trunk@12464 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/principal.rb')
-rw-r--r--app/models/principal.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/principal.rb b/app/models/principal.rb
index b6f41d535..9cb3b1b22 100644
--- a/app/models/principal.rb
+++ b/app/models/principal.rb
@@ -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