Sha256: 7b58b5ae82a2ce51279dfcbcc067b113e15899fd5398aac7f6ffe31e568bda06
Contents?: true
Size: 563 Bytes
Versions: 8
Compression:
Stored size: 563 Bytes
Contents
module CurationConcern module HumanReadableType extend ActiveSupport::Concern module ClassMethods def human_readable_type name.demodulize.titleize end end def human_readable_type self.class.human_readable_type end 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 end end
Version data entries
8 entries across 8 versions & 1 rubygems