app/mailers/report_mailer.rb
# Generate monthly announcement, but only if there's a destination
# email address environment variable REPORT_MONTHLY_EMAIL
# We currently only send these out in English, so it's not internationalized
# (no point in asking the translators to do unnecessary work).
Generate monthly announcement, but only if there's a destination
email address environment variable REPORT_MONTHLY_EMAIL
We currently only send these out in English, so it's not internationalized
(no point in asking the translators to do unnecessary work).
Generate monthly announcement but only if there ' s a destination email address environment variable REPORT_MONTHLY_EMAIL We currently only send these out in English so it ' s not internationalized ( no point in asking the translators to do unnecessary work ) .
def report_monthly_announcement(
    projects, month_display,
    last_stat_in_prev_month, last_stat_in_prev_prev_month
  )
    @report_destination = ENV['REPORT_MONTHLY_EMAIL']
    return if @report_destination.blank?
    @projects = projects
    @month_display = month_display
    @last_stat_in_prev_month = last_stat_in_prev_month
    @last_stat_in_prev_prev_month = last_stat_in_prev_prev_month
    set_standard_headers
    I18n.with_locale(I18n.default_locale) do
      mail(
        to: @report_destination,
        subject: 'Projects that received badges (monthly summary)'
      )
    end
  end
def report_monthly_announcement ( projects , month_display , last_stat_in_prev_month , last_stat_in_prev_prev_month ) @report_destination = ENV [ 'REPORT_MONTHLY_EMAIL' ] return if @report_destination . blank? @projects = projects @month_display = month_display @last_stat_in_prev_month = last_stat_in_prev_month @last_stat_in_prev_prev_month = last_stat_in_prev_prev_month set_standard_headers I18n . with_locale ( I18n . default_locale ) do mail ( to : @report_destination , subject : 'Projects that received badges (monthly summary)' ) end end
Generate monthly announcement, but only if there's a destination
email address environment variable REPORT_MONTHLY_EMAIL
We currently only send these out in English, so it's not internationalized
(no point in asking the translators to do unnecessary work).
Generate monthly announcement but only if there ' s a destination email address environment variable REPORT_MONTHLY_EMAIL We currently only send these out in English so it ' s not internationalized ( no point in asking the translators to do unnecessary work ) .
projects
<not_specific>
month_display
<not_specific>
last_stat_in_prev_month
<not_specific>
last_stat_in_prev_prev_month
<not_specific>