Sha256: ca6ba035ede67ef9c3082d5beeb44550c2fbdfb2d7b1aa587825c17d85573117
Contents?: true
Size: 574 Bytes
Versions: 64
Compression:
Stored size: 574 Bytes
Contents
# -*- encoding : utf-8 -*- # This module provides the body of an email export based on the document's semantic values module Blacklight::Solr::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
64 entries across 64 versions & 1 rubygems