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



12
13
14
# File 'app/models/concerns/hyrax/human_readable_type.rb', line 12

def human_readable_type
  self.class.human_readable_type
end

#to_solr(solr_doc = {}) ⇒ Object



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

def to_solr(solr_doc = {})
  super(solr_doc).tap do |doc|
    doc["human_readable_type_sim"] = human_readable_type
    doc["human_readable_type_tesim"] = human_readable_type
  end
end