lib/cm_admin/models/form_field.rb in cm-admin-1.5.37 vs lib/cm_admin/models/form_field.rb in cm-admin-1.5.38

- old
+ new

@@ -7,11 +7,11 @@ attr_accessor :field_name, :label, :header, :input_type, :collection, :disabled, :helper_method, :placeholder, :display_if, :html_attrs, :target, :col_size, :ajax_url, :helper_text VALID_INPUT_TYPES = %i[ - integer decimal string single_select multi_select date date_time text - single_file_upload multi_file_upload hidden rich_text check_box radio_button custom_string custom_date custom_single_select + integer decimal string single_select multi_select date date_time text switch custom_single_select + single_file_upload multi_file_upload hidden rich_text check_box radio_button custom_string custom_date ].freeze def initialize(field_name, input_type, attributes = {}) @field_name = field_name set_default_values