Module: ReportFailsHelper

Defined in:
app/helpers/report_fails_helper.rb

Overview

This helper contains the default values to report failures in plates from the Report Fail UI

Constant Summary collapse

FAILURE_KEYS =
%w[sample_integrity quantification lab_error].freeze

Instance Method Summary collapse

Instance Method Details

#report_fail_disabled_optionsObject



15
16
17
# File 'app/helpers/report_fails_helper.rb', line 15

def report_fail_disabled_options
  []
end

#report_fail_failure_optionsObject



7
8
9
# File 'app/helpers/report_fails_helper.rb', line 7

def report_fail_failure_options
  FAILURE_KEYS.index_by { |val| I18n.t("report_fails.#{val}") }
end

#report_fail_selected_optionObject



11
12
13
# File 'app/helpers/report_fails_helper.rb', line 11

def report_fail_selected_option
  FAILURE_KEYS.first
end