summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-08 08:02:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-08 08:02:06 +0000
commit2f77bfde91846b799d70a436783a8eee2741bf75 (patch)
tree462714ea74eaf4d1de0f83784ee0c0549076b018 /app/models/project.rb
parente4fac91b7da8e4482da06fc33c3d9eeac2d66dc1 (diff)
downloadredmine-2f77bfde91846b799d70a436783a8eee2741bf75.tar.gz
redmine-2f77bfde91846b799d70a436783a8eee2741bf75.zip
Option to set a default assignee on each project (#482).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16525 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index ce68c725c..420306889 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -39,6 +39,7 @@ class Project < ActiveRecord::Base
has_many :issue_changes, :through => :issues, :source => :journals
has_many :versions, :dependent => :destroy
belongs_to :default_version, :class_name => 'Version'
+ belongs_to :default_assigned_to, :class_name => 'Principal'
has_many :time_entries, :dependent => :destroy
has_many :queries, :dependent => :delete_all
has_many :documents, :dependent => :destroy
@@ -743,7 +744,8 @@ class Project < ActiveRecord::Base
'tracker_ids',
'issue_custom_field_ids',
'parent_id',
- 'default_version_id'
+ 'default_version_id',
+ 'default_assigned_to_id'
safe_attributes 'enabled_module_names',
:if => lambda {|project, user|