Sha256: cdf95bdda27aaaddfac57b7f1374b56dedfc64ee0df669ba48367e0e7295b68d
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
module SirTrevorRails::Blocks class ItemTextBlock < SirTrevorRails::Block include SolrDocumentBlock def doc_id send(:'item-id') end def solr_document @solr_document ||= solr_helper.get_solr_response_for_doc_id(doc_id).last if doc_id.present? end def text_align as_json[:data].find { |k,v| k =~ /text-align/ }.try(:last) end end end
Version data entries
3 entries across 3 versions & 1 rubygems