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



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

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}"
  end
end

#collection_type_gid_document_field_nameObject



99
100
101
102
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 99

def collection_type_gid_document_field_name
  Deprecation.warn('use Hyrax.config.collection_type_index_field instead')
  Hyrax.config.collection_type_index_field
end