Module: CurationConcerns::HumanReadableType

Extended by:
ActiveSupport::Concern
Included in:
CollectionBehavior, FileSetBehavior, WorkBehavior
Defined in:
app/models/concerns/curation_concerns/human_readable_type.rb

Instance Method Summary collapse

Instance Method Details

#human_readable_typeObject



10
11
12
# File 'app/models/concerns/curation_concerns/human_readable_type.rb', line 10

def human_readable_type
  self.class.human_readable_type
end

#to_solr(solr_doc = {}) ⇒ Object



14
15
16
17
18
19
# File 'app/models/concerns/curation_concerns/human_readable_type.rb', line 14

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