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