app/commands/user/unsubscribe_from_all_emails.rb
Method call
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call
user.communication_preferences.update!(
email_on_mentor_started_discussion_notification: false,
email_on_mentor_replied_to_discussion_notification: false,
email_on_student_replied_to_discussion_notification: false,