Module: Hyrax::CollectionBehavior::ClassMethods

Defined in:
app/models/concerns/hyrax/collection_behavior.rb

Instance Method Summary collapse

Instance Method Details

#_to_partial_pathObject

This governs which partial to draw when you render this type of object


83
84
85
86
87
88
89
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 83

def _to_partial_path #:nodoc:
  @_to_partial_path ||= begin
    element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(name))
    collection = ActiveSupport::Inflector.tableize(name)
    "hyrax/#{collection}/#{element}".freeze
  end
end

#collection_type_gid_document_field_nameObject


91
92
93
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 91

def collection_type_gid_document_field_name
  Solrizer.solr_name('collection_type_gid', *index_collection_type_gid_as)
end