Sha256: 2b73896bfc310b412a787e247c6513031bcc4eb84158d3772b35603677cf7fe8
Contents?: true
Size: 554 Bytes
Versions: 37
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true # This module provides the body of an email export based on the document's semantic values module Blacklight::Document::Sms # Return a text string that will be the body of the email def to_sms_text semantics = to_semantic_values body = [] body << I18n.t('blacklight.sms.text.title', value: semantics[:title].first) if semantics[:title].present? body << I18n.t('blacklight.sms.text.author', value: semantics[:author].first) if semantics[:author].present? return body.join unless body.empty? end end
Version data entries
37 entries across 37 versions & 1 rubygems