app/models/in_progress_etd.rb
# Information about the supplemental files that the JavaScript needs for the edit form.
# @returns {Array} that contains 2 things: 'supplemental_files' (an array converted to JSON), and 'supplemental_file_metadata' (an array).
# The 2 arrays are expected to keep the same order between them.
# For example, the metadata in array index 0 of supplemental_files_metadata belongs to the file described in array index 0 of supplemental_files.
Information about the supplemental files that the JavaScript needs for the edit form.
Information about the supplemental files that the JavaScript needs for the edit form .
def supplemental_files_for_refresh(etd)
    supp_files = []
    supp_files_metadata = []
    etd.supplemental_files_fs.each do |supp_file|
      supp_files << file_for_refresh(supp_file)
      supp_files_metadata << file_metadata_for_refresh(supp_file)
    end
    [supp_files.to_json, supp_files_metadata]
  end
def supplemental_files_for_refresh ( etd ) supp_files = [ ] supp_files_metadata = [ ] etd . supplemental_files_fs . each do | supp_file | supp_files << file_for_refresh ( supp_file ) supp_files_metadata << file_metadata_for_refresh ( supp_file ) end [ supp_files . to_json , supp_files_metadata ] end
Information about the supplemental files that the JavaScript needs for the edit form.
Information about the supplemental files that the JavaScript needs for the edit form .
{Array} that contains 2 things: 'supplemental_files' (an array converted to JSON), and 'supplemental_file_metadata' (an array). The 2 arrays are expected to keep the same order between them. For example, the metadata in array index 0 of supplemental_files_metadata belongs to the file described in array index 0 of supplemental_files.
{ Array } that contains 2 things : ' supplemental_files ' ( an array converted to JSON ) and ' supplemental_file_metadata ' ( an array ) . The 2 arrays are expected to keep the same order between them . For example the metadata in array index 0 of supplemental_files_metadata belongs to the file described in array index 0 of supplemental_files .
etd
<not_specific>