Module: CurationConcern::HumanReadableType
- Extended by:
- ActiveSupport::Concern
- Included in:
- CollectionModel
- Defined in:
- app/models/concerns/curation_concern/human_readable_type.rb
Instance Method Summary collapse
Instance Method Details
#human_readable_type ⇒ Object
10 11 12 |
# File 'app/models/concerns/curation_concern/human_readable_type.rb', line 10 def human_readable_type self.class.human_readable_type end |
#to_solr(solr_doc = {}, opts = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'app/models/concerns/curation_concern/human_readable_type.rb', line 14 def to_solr(solr_doc={}, opts={}) super(solr_doc, opts) solr_doc[Solrizer.solr_name('human_readable_type',:facetable)] = human_readable_type solr_doc[Solrizer.solr_name('human_readable_type', :stored_searchable)] = human_readable_type return solr_doc end |