diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-09 15:04:31 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-09 15:04:31 +0300 |
commit | c34288fa27f9bca5b371b94890cac4f6a06773eb (patch) | |
tree | b54cc753f51ec8987181a14937f0191e3da16a3a /app/models/issue.rb | |
parent | 546d7d44d00ce7cbd9f056ed3ebfd8c172967ac1 (diff) | |
download | gitlab-ce-c34288fa27f9bca5b371b94890cac4f6a06773eb.tar.gz |
Override Issue opened scope. Now reopened issues also included
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 54d9af7e67e..cb7ee9fda37 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -54,4 +54,7 @@ class Issue < ActiveRecord::Base state :closed end + + # Both open and reopened issues should be listed as opened + scope :opened, -> { with_state(:opened, :reopened) } end |