Module: Hyrax::HumanReadableType

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#human_readable_typeObject



19
20
21
# File 'app/models/concerns/hyrax/human_readable_type.rb', line 19

def human_readable_type
  self.class.human_readable_type
end

#to_solr(solr_doc = {}) ⇒ Object



23
24
25
26
27
28
# File 'app/models/concerns/hyrax/human_readable_type.rb', line 23

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