Patch #42445 ยป 0001-refactor-remove-extra-condition.patch
| app/models/user.rb | ||
|---|---|---|
| 815 | 815 |
def notify_about?(object) |
| 816 | 816 |
if mail_notification == 'all' |
| 817 | 817 |
true |
| 818 |
elsif mail_notification.blank? || mail_notification == 'none'
|
|
| 818 |
elsif mail_notification == 'none' |
|
| 819 | 819 |
false |
| 820 | 820 |
else |
| 821 | 821 |
case object |