Sha256: 4f5178b5e4ddc402b80347966f6ddf21aeae64de46736dfcd59e2f10c9600745

Contents?: true

Size: 806 Bytes

Versions: 13

Compression:

Stored size: 806 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Accountability
    # This mailer sends a notification email containing the result of importing
    # Cprojects to the results.
    class ImportProjectsMailer < Decidim::ApplicationMailer
      # Public: Sends a notification email with the result of projects import selected projects to Accountability
      #
      # user   - The user to be notified.
      #
      # Returns nothing.
      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
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.4 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.29.0 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.3 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.29.0.rc4 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.29.0.rc3 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.29.0.rc2 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.29.0.rc1 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.2 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.1 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.0 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.0.rc5 app/mailers/decidim/accountability/import_projects_mailer.rb
decidim-accountability-0.28.0.rc4 app/mailers/decidim/accountability/import_projects_mailer.rb