diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-19 11:45:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-19 11:45:33 +0000 |
commit | 7389b4bed0cabf3e248707474a63c459be91ab9d (patch) | |
tree | c05fafabe82f27dde325efc93099327d7fc156b1 /app/models/issue.rb | |
parent | 4570fcb7a213109ebe05888a6180278050c5ae97 (diff) | |
download | redmine-7389b4bed0cabf3e248707474a63c459be91ab9d.tar.gz redmine-7389b4bed0cabf3e248707474a63c459be91ab9d.zip |
Merged r2109, r2118, r2130, r2131, r2134, r2135, r2136 and r2139 to r2145 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2146 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 7488850af..f3a221c12 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -195,6 +195,11 @@ class Issue < ActiveRecord::Base self.status.is_closed? end + # Returns true if the issue is overdue + def overdue? + !due_date.nil? && (due_date < Date.today) + end + # Users the issue can be assigned to def assignable_users project.assignable_users |