Project

General

Profile

Actions

Patch #42445

closed

Remove extra condition in User#notify_about?

Added by Nishida Yuya 13 days ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

In User#notify_about?, the case of mail_notification.blank? is never. Because User#set_mail_notification (before_create) sets Setting.default_notification_option if blank.

So we can remove its condition. This patch removes it.



Files

Actions

Also available in: Atom PDF