Sha256: 3c000e79c1bccc2e40b2d0fa7b1f2cef19b8308a8e8e7c3e747661f4d04c78ea

Contents?: true

Size: 660 Bytes

Versions: 42

Compression:

Stored size: 660 Bytes

Contents

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

42 entries across 42 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.4.0 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.3.3 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.3.2 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.3.1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.3.0 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.2.1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.2.0 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.1.0 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.2 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0.rc6 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0.rc5 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0.rc4 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0.rc3 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0.rc2 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-2.0.0.rc1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-1.5.1 app/mailers/spotlight/invitation_mailer.rb
blacklight-spotlight-1.4.1 app/mailers/spotlight/invitation_mailer.rb