Class: Decidim::Accountability::ImportProjectsMailer

Inherits:
Decidim::ApplicationMailer
  • Object
show all
Defined in:
app/mailers/decidim/accountability/import_projects_mailer.rb

Overview

This mailer sends a notification email containing the result of importing Cprojects to the results.

Instance Method Summary collapse

Instance Method Details

#import(user, component, projects) ⇒ Object

Public: Sends a notification email with the result of projects import selected projects to Accountability

user - The user to be notified.

Returns nothing.



13
14
15
16
17
18
19
20
21
22
# File 'app/mailers/decidim/accountability/import_projects_mailer.rb', line 13

def import(user, component, projects)
  @user = user
  @organization = user.organization
  @component = component
  @projects = projects

  with_user(user) do
    mail(to: "#{user.name} <#{user.email}>", subject: I18n.t("decidim.accountability.import_projects_mailer.import.subject"))
  end
end