app/mailers/report_mailer.rb
# Report if a project is deleted.  "deletion_rationale" is untrusted
# data from a user.
Report if a project is deleted.  "deletion_rationale" is untrusted
data from a user.
Report if a project is deleted . " deletion_rationale " is untrusted data from a user .
def report_project_deleted(project, user, deletion_rationale)
    @report_destination = REPORT_EMAIL_DESTINATION
    @project = project
    @user = user
    @deletion_rationale = deletion_rationale
    set_standard_headers
    I18n.with_locale(I18n.default_locale) do
      mail(
        to: @report_destination,
        subject: t(
          'report_mailer.subject_project_deleted',
          project_id: project.id, project_name: project.name
        ).strip
      )
    end
  end
def report_project_deleted ( project , user , deletion_rationale ) @report_destination = REPORT_EMAIL_DESTINATION @project = project @user = user @deletion_rationale = deletion_rationale set_standard_headers I18n . with_locale ( I18n . default_locale ) do mail ( to : @report_destination , subject : t ( 'report_mailer.subject_project_deleted' , project_id : project . id , project_name : project . name ) . strip ) end end
Report if a project is deleted.
Report if a project is deleted .
project
<not_specific>
user
<not_specific>
deletion_rationale
<not_specific>