Sha256: 804948c6e8c071e9365561266482bb2f662eb17ed09f08c28d78c34cb1e21595

Contents?: true

Size: 906 Bytes

Versions: 4

Compression:

Stored size: 906 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    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.proposals.admin.proposals_valuator_mailer.notify_proposals_valuator")
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-reporting_proposals-0.5.2 app/mailers/concerns/decidim/proposals/admin/proposals_valuator_mailer.rb
decidim-reporting_proposals-0.5.1 app/mailers/concerns/decidim/proposals/admin/proposals_valuator_mailer.rb
decidim-reporting_proposals-0.5.0 app/mailers/concerns/decidim/proposals/admin/proposals_valuator_mailer.rb
decidim-reporting_proposals-0.4.2 app/mailers/concerns/decidim/proposals/admin/proposals_valuator_mailer.rb