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
- #report_fail_disabled_options ⇒ Object
- #report_fail_failure_options ⇒ Object
- #report_fail_selected_option ⇒ Object
Instance Method Details
#report_fail_disabled_options ⇒ Object
15 16 17 |
# File 'app/helpers/report_fails_helper.rb', line 15 def [] end |
#report_fail_failure_options ⇒ Object
7 8 9 |
# File 'app/helpers/report_fails_helper.rb', line 7 def FAILURE_KEYS.index_by { |val| I18n.t("report_fails.#{val}") } end |
#report_fail_selected_option ⇒ Object
11 12 13 |
# File 'app/helpers/report_fails_helper.rb', line 11 def report_fail_selected_option FAILURE_KEYS.first end |