Sha256: ef98d601349b046026729529b54b305d6e8d3f98986c51a136b4f271e5e6cd80

Contents?: true

Size: 691 Bytes

Versions: 76

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  # Mailer for contacting new exhibit curators or administrators
  class InvitationMailer < ActionMailer::Base
    include Devise::Mailers::Helpers

    def exhibit_invitation_notification(role)
      initialize_from_record(role.user)
      @role = role
      @key = if @role.resource.is_a?(Spotlight::Site)
               'exhibits_admin_invitation_mailer'
             else
               'invitation_mailer'
             end
      mail(to: role.user.email,
           from: mailer_sender(devise_mapping),
           subject: I18n.t("spotlight.#{@key}.invitation_instructions.subject", exhibit_name: @role.resource.title))
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.3 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.2 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.rc6 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.rc5 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.rc4 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.rc3 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.rc2 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.rc1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.10 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.9 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.8 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.7 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.6 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.5 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.4 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.3 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.2 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-3.0.0.alpha.1 app/mailers/spotlight/invitation_mailer.rb