Skip to content

Commit 45655ab

Browse files
committed
remove comments
1 parent 6c34a87 commit 45655ab

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

app/models/form_field.rb

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class FormField < ApplicationRecord
1212
# Enum
1313
enum status: [:inactive, :active]
1414

15+
# TODO: Rails 6.1 requires enums to be symbols
16+
# need additional refactoring in methods that call answer_type & answer_datatype to account for change to enum
1517
enum answer_type: [
1618
:free_form_input_one_line,
1719
:free_form_input_paragraph,
@@ -28,24 +30,6 @@ class FormField < ApplicationRecord
2830
:date,
2931
]
3032

31-
# TODO: do we need this mapping?
32-
ANSWER_TYPE_LABELS = {
33-
free_form_input_one_line: 'free-form input - one line',
34-
free_form_input_paragraph: 'free-form input - paragraph',
35-
multiple_choice_radio: 'multiple choice - radio',
36-
no_user_input: 'no user input',
37-
multiple_choice_checkbox: 'multiple choice - checkbox',
38-
group_header: 'group-header'
39-
}.freeze
40-
41-
# TODO: do we need this mapping?
42-
ANSWER_DATATYPE_LABELS = {
43-
text_alphanumeric: 'text (alphanumeric)',
44-
number_integer: 'number (integer)',
45-
number_decimal: 'number (decimal)',
46-
date: 'date'
47-
}.freeze
48-
4933
rails_admin do
5034
# exclude_fields :answer_options
5135
end

0 commit comments

Comments
 (0)