Class: Hyrax::Forms::FileSetForm

Inherits:
ChangeSet
  • Object
show all
Defined in:
app/forms/hyrax/forms/file_set_form.rb

Class Method Summary collapse

Methods inherited from ChangeSet

for

Class Method Details

.required_fieldsArray<Symbol>

Returns list of required field names as symbols.

Returns:

  • (Array<Symbol>)

    list of required field names as symbols


13
14
15
16
17
# File 'app/forms/hyrax/forms/file_set_form.rb', line 13

def required_fields
  definitions
    .select { |_, definition| definition[:required] }
    .keys.map(&:to_sym)
end