summaryrefslogtreecommitdiffstats
path: root/app/models/issue_category.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-29 17:21:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-29 17:21:37 +0000
commit87bad767c686c96d4bb1d83443749302c977e1bf (patch)
tree1338e1a1e6080445d7055e0698aab122de79d4db /app/models/issue_category.rb
parentf816d4f3784409ff505f4f88ad46e7f7fb447a96 (diff)
downloadredmine-87bad767c686c96d4bb1d83443749302c977e1bf.tar.gz
redmine-87bad767c686c96d4bb1d83443749302c977e1bf.zip
Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@577 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_category.rb')
-rw-r--r--app/models/issue_category.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue_category.rb b/app/models/issue_category.rb
index 1a1daffb2..fb2c099a1 100644
--- a/app/models/issue_category.rb
+++ b/app/models/issue_category.rb
@@ -18,6 +18,7 @@
class IssueCategory < ActiveRecord::Base
before_destroy :check_integrity
belongs_to :project
+ belongs_to :assigned_to, :class_name => 'User', :foreign_key => 'assigned_to_id'
validates_presence_of :name
validates_uniqueness_of :name, :scope => [:project_id]