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



16
17
18
# File 'app/models/concerns/hyrax/human_readable_type.rb', line 16

def human_readable_type
  self.class.human_readable_type
end

#to_solr(solr_doc = {}) ⇒ Object



20
21
22
23
24
25
# File 'app/models/concerns/hyrax/human_readable_type.rb', line 20

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