app/mailers/report_mailer.rb
# Create reminder email to inactive badge entry owner
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
Create reminder email to inactive badge entry owner
rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
Create reminder email to inactive badge entry owner rubocop : disable Metrics / AbcSize Metrics / CyclomaticComplexity
def email_reminder_owner(project)
    return if project.nil? || project.id.nil? || project.user_id.nil?
    @project = project
    user = User.find(project.user_id)
    return if user.nil?
    return unless user.email?
    return unless user.email.include?('@')
    @project_info_url =
      project_url(@project, locale: user.preferred_locale.to_sym)
    @email_destination = user.email
    set_standard_headers
    I18n.with_locale(user.preferred_locale.to_sym) do
      mail(
        to: @email_destination,
        subject: t('report_mailer.subject_reminder').strip
      )
    end
  end
def email_reminder_owner ( project ) return if project . nil? || project . id . nil? || project . user_id . nil? @project = project user = User . find ( project . user_id ) return if user . nil? return unless user . email? return unless user . email . include? ( '@' ) @project_info_url = project_url ( @project , locale : user . preferred_locale . to_sym ) @email_destination = user . email set_standard_headers I18n . with_locale ( user . preferred_locale . to_sym ) do mail ( to : @email_destination , subject : t ( 'report_mailer.subject_reminder' ) . strip ) end end
Create reminder email to inactive badge entry owner
rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
Create reminder email to inactive badge entry owner rubocop : disable Metrics / AbcSize Metrics / CyclomaticComplexity
# bcc: REPORT_EMAIL_DESTINATION, # This would bcc individual reminders
project
<not_specific>