diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue_priority.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb index 8326b8ffa..aa4c5265d 100644 --- a/app/models/issue_priority.rb +++ b/app/models/issue_priority.rb @@ -54,6 +54,14 @@ class IssuePriority < Enumeration end end + def high? + position > self.class.default_or_middle.position + end + + def low? + position < self.class.default_or_middle.position + end + # Updates position_name for active priorities # Called from migration 20121026003537_populate_enumerations_position_name def self.compute_position_names |