Class: Sufia::Forms::BatchEditForm

Inherits:
WorkForm
  • Object
show all
Defined in:
app/forms/sufia/forms/batch_edit_form.rb

Instance Attribute Summary collapse

Attributes inherited from WorkForm

#agreement_accepted

Instance Method Summary collapse

Methods inherited from WorkForm

#[], build_permitted_params, multiple?, #primary_terms, #secondary_terms

Constructor Details

#initialize(model, current_ability, batch) ⇒ BatchEditForm

Returns a new instance of BatchEditForm.

Parameters:

  • model (ActiveFedora::Base)

    the model backing the form

  • current_ability (Ability)

    the user authorization model

  • batch (Array<String>)

    a list of document ids in the batch



16
17
18
19
20
# File 'app/forms/sufia/forms/batch_edit_form.rb', line 16

def initialize(model, current_ability, batch)
  super(model, current_ability)
  @names = []
  initialize_combined_fields(batch)
end

Instance Attribute Details

#namesObject

Returns the value of attribute names.



11
12
13
# File 'app/forms/sufia/forms/batch_edit_form.rb', line 11

def names
  @names
end