diff options
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index bb7797c40..0f44cdd30 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -32,6 +32,8 @@ class Issue < ActiveRecord::Base has_many :custom_values, :dependent => :delete_all, :as => :customized has_many :custom_fields, :through => :custom_values + acts_as_watchable + validates_presence_of :subject, :description, :priority, :tracker, :author, :status validates_inclusion_of :done_ratio, :in => 0..100 validates_associated :custom_values, :on => :update |