Sha256: bff193eacdf77c5e39b7e0ce031a8a67289d44693cfcf36a522eb27fe485cd84
Contents?: true
Size: 809 Bytes
Versions: 31
Compression:
Stored size: 809 Bytes
Contents
# frozen_string_literal: true # Only works for documents with a #to_marc right now. class RecordMailer < ActionMailer::Base def email_record(documents, details, url_gen_params) title = begin documents.first.to_semantic_values[:title] rescue I18n.t('blacklight.email.text.default_title') end subject = I18n.t('blacklight.email.text.subject', :count => documents.length, :title => title ) @documents = documents @message = details[:message] @url_gen_params = url_gen_params mail(:to => details[:to], :subject => subject) end def sms_record(documents, details, url_gen_params) @documents = documents @url_gen_params = url_gen_params mail(:to => details[:to], :subject => "") end end
Version data entries
31 entries across 31 versions & 1 rubygems