Sha256: a5220ac7a01ff838cb686faab3983cb56c211b2ede1ea387494c77db185d979a
Contents?: true
Size: 627 Bytes
Versions: 20
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module Hyrax ## # A custom name for Valkyrie PcdmCollection objects. Route keys are mapped to `collection` # not be the same as the model name. class CollectionName < Name def initialize(klass, namespace = nil, name = nil) super @human = 'Collection' @i18n_key = :collection @param_key = 'collection' @plural = 'collections' @route_key = 'collections' @singular_route_key = 'collection' @collection = 'collections' @element = 'collection' end end end
Version data entries
20 entries across 20 versions & 1 rubygems