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

Version Path
hyrax-5.1.0.pre.beta1 lib/hyrax/collection_name.rb
hyrax-5.0.4 lib/hyrax/collection_name.rb
hyrax-5.0.3 lib/hyrax/collection_name.rb
hyrax-5.0.2 lib/hyrax/collection_name.rb
hyrax-5.0.1 lib/hyrax/collection_name.rb
hyrax-5.0.0 lib/hyrax/collection_name.rb
hyrax-5.0.0.rc3 lib/hyrax/collection_name.rb
hyrax-5.0.0.rc2 lib/hyrax/collection_name.rb
hyrax-5.0.0.rc1 lib/hyrax/collection_name.rb
hyrax-3.6.0 lib/hyrax/collection_name.rb
hyrax-4.0.0 lib/hyrax/collection_name.rb
hyrax-4.0.0.rc3 lib/hyrax/collection_name.rb
hyrax-4.0.0.rc2 lib/hyrax/collection_name.rb
hyrax-4.0.0.rc1 lib/hyrax/collection_name.rb
hyrax-3.5.0 lib/hyrax/collection_name.rb
hyrax-4.0.0.beta2 lib/hyrax/collection_name.rb
hyrax-3.4.2 lib/hyrax/collection_name.rb
hyrax-4.0.0.beta1 lib/hyrax/collection_name.rb
hyrax-3.4.1 lib/hyrax/collection_name.rb
hyrax-3.4.0 lib/hyrax/collection_name.rb