Sha256: 562736eaeaee04b58a86e19b18365123bf5c7c1934ef86203f6a2b1cbefb1589
Contents?: true
Size: 346 Bytes
Versions: 9
Compression:
Stored size: 346 Bytes
Contents
module CurationConcern::HasRepresentative extend ActiveSupport::Concern included do has_attributes :representative, datastream: :properties, multiple: false end def to_solr(solr_doc={}, opts={}) super.tap do |solr_doc| solr_doc[Solrizer.solr_name('representative', :stored_searchable)] = representative end end end
Version data entries
9 entries across 9 versions & 2 rubygems