app/helpers/dashboard_helper.rb
# Return the most successful status level given a set up uploads
Return the most successful status level given a set up uploads
Return the most successful status level given a set up uploads
def best_status(uploads)
    statuses = uploads.map { |upload| files_status(upload) }.uniq
    return :completed if statuses.include? :completed
    return :needs_attention if statuses.include? :needs_attention
    return :failed if statuses.include? :failed
  end
def best_status ( uploads ) statuses = uploads . map { | upload | files_status ( upload ) } . uniq return :completed if statuses . include? :completed return :needs_attention if statuses . include? :needs_attention return :failed if statuses . include? :failed end
Return the most successful status level given a set up uploads
Return the most successful status level given a set up uploads
uploads
<not_specific>