Module: Spotlight::SolrDocument::SpotlightImages

Included in:
Spotlight::SolrDocument
Defined in:
app/models/concerns/spotlight/solr_document/spotlight_images.rb

Overview

Simple concern mixed into SolrDocument to create a mapping of configured Spotlight::ImageDerivatives to their configured fields in the SolrDocument. Any derivatives configured (descibed in Spotlight::ImageDerivatives) will be available under #spotlight_image_versions and an array of available versions (regardless of their is related data in the document) in the #spotlight_image_versions#versions array.

Defined Under Namespace

Classes: Versions

Instance Method Summary collapse

Instance Method Details

#spotlight_image_versionsObject



11
12
13
# File 'app/models/concerns/spotlight/solr_document/spotlight_images.rb', line 11

def spotlight_image_versions
  @spotlight_image_versions ||= Versions.new(self)
end