Class: Hyrax::AdministrativeSetName

Inherits:
Name
  • Object
show all
Defined in:
lib/hyrax/administrative_set_name.rb

Overview

A custom name for Valkyrie AdministrativeSet objects. Route keys are mapped to `admin_set` not be the same as the model name.

Instance Method Summary collapse

Constructor Details

#initialize(klass, namespace = nil, name = nil) ⇒ AdministrativeSetName

Returns a new instance of AdministrativeSetName.


8
9
10
11
12
13
14
15
16
# File 'lib/hyrax/administrative_set_name.rb', line 8

def initialize(klass, namespace = nil, name = nil)
  super
  @human              = 'AdminSet'
  @i18n_key           = :admin_set
  @param_key          = 'admin_set'
  @plural             = 'admin_sets'
  @route_key          = 'admin_sets'
  @singular_route_key = 'admin_set'
end