summaryrefslogtreecommitdiffstats
path: root/app/models/user_preference.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-21 04:23:26 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-21 04:23:26 +0000
commitd48769f152ffbfa7203889c6c08e6bb0591e3ab3 (patch)
tree010840b0a332949a182339eb50f6b99455ee78ea /app/models/user_preference.rb
parentd438c89b1a986176bf9fa6e5bb4dab6a1f4ee8e1 (diff)
downloadredmine-d48769f152ffbfa7203889c6c08e6bb0591e3ab3.tar.gz
redmine-d48769f152ffbfa7203889c6c08e6bb0591e3ab3.zip
Enable users to receive email notifications about high issues (only) (#32628).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19449 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r--app/models/user_preference.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb
index 3f0d9743c..f4317025f 100644
--- a/app/models/user_preference.rb
+++ b/app/models/user_preference.rb
@@ -33,6 +33,7 @@ class UserPreference < ActiveRecord::Base
'comments_sorting',
'warn_on_leaving_unsaved',
'no_self_notified',
+ 'notify_about_high_priority_issues',
'textarea_font',
'recently_used_projects',
'history_default_tab',
@@ -89,6 +90,9 @@ class UserPreference < ActiveRecord::Base
def no_self_notified; (self[:no_self_notified] == true || self[:no_self_notified] == '1'); end
def no_self_notified=(value); self[:no_self_notified]=value; end
+ def notify_about_high_priority_issues; (self[:notify_about_high_priority_issues] == true || self[:notify_about_high_priority_issues] == '1'); end
+ def notify_about_high_priority_issues=(value); self[:notify_about_high_priority_issues]=value; end
+
def activity_scope; Array(self[:activity_scope]) ; end
def activity_scope=(value); self[:activity_scope]=value ; end