Sha256: 50f9f9f63143e5a4ad480814b7be7f477d67e5bb02fd4dca2aa050d190bbab9e

Contents?: true

Size: 925 Bytes

Versions: 1

Compression:

Stored size: 925 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ReportingProposals
    module Admin
      class ProposalsValuatorMailer < Decidim::ApplicationMailer
        include Decidim::TranslationsHelper
        include Decidim::SanitizeHelper
        include Decidim::ApplicationHelper
        include Decidim::TranslatableAttributes

        helper Decidim::ResourceHelper
        helper Decidim::TranslationsHelper
        helper Decidim::ApplicationHelper

        def notify_proposals_valuator(user, admin, proposals)
          @valuator_user = user
          @admin = admin
          @proposals = proposals
          @organization = user.organization

          with_user(user) do
            mail to: "#{user.name} <#{user.email}>",
                 subject: t("subject", scope: "decidim.reporting_proposals.admin.proposals_valuator_mailer.notify_proposals_valuator")
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-reporting_proposals-0.6.0 app/mailers/concerns/decidim/reporting_proposals/admin/proposals_valuator_mailer.rb