Sha256: d2c6721f5c3007f19f113e9fd1c02cde4fa3608cfd850d56adfcf7c757d9a99f
Contents?: true
Size: 562 Bytes
Versions: 29
Compression:
Stored size: 562 Bytes
Contents
# -*- encoding : utf-8 -*- # 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 = self.to_semantic_values body = [] body << I18n.t('blacklight.sms.text.title', value: semantics[:title].first) unless semantics[:title].blank? body << I18n.t('blacklight.sms.text.author', value: semantics[:author].first) unless semantics[:author].blank? return body.join unless body.empty? end end
Version data entries
29 entries across 29 versions & 1 rubygems