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


95
96
97
98
99
100
101
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 95

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


103
104
105
106
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 103

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