Module: CurationConcern::HasRepresentative

Extended by:
ActiveSupport::Concern
Included in:
CollectionModel
Defined in:
app/models/concerns/curation_concern/has_representative.rb

Instance Method Summary collapse

Instance Method Details

#to_solr(solr_doc = {}, opts = {}) ⇒ Object



8
9
10
11
12
# File 'app/models/concerns/curation_concern/has_representative.rb', line 8

def to_solr(solr_doc={}, opts={})
  super.tap do |solr_doc|
    solr_doc[Solrizer.solr_name('representative', :stored_searchable)] = representative
  end
end