anchor.diff:        # Handle regular columns
         else
           if Select2?
  -          predicate_select2 = @element.find("#s2id_#{base_id}p")
             predicate_select2.select2("enable")
   
             # If Select2 is on query input, remove and set defaults
  -          if (query_select2 = @element.find("#s2id_#{base_id}v_0_value")).length > 0
  +          if query_select2.length > 0
               query_input.select2('destroy')
               query_input.val('')
               previous_val = ''
  
positive.code:           'style="width:' + (query_input.width() * 2) + 'px;" ' +
            'data-base-name="' + base_name + '" />'))
  
        value_select2_id = "#s2id_#{base_id}v_0_value"
        value_select2 = @element.find(value_select2_id)
  
        # Fetch all existing values
        inputs = @element.find("input[name^=\"#{base_name}\"]")
  
negative.code:         # Handle association columns with AJAX autocomplete
          if selected_attribute.data('ajax-url')
            # Set label to single association label, if anything was selected
            if query_select2.length && query_input.select2('data')
              query_input_data = query_input.select2('data')
              Ransack.value_field_labels[selected_attribute.val()] ||= {}
              Ransack.value_field_labels[selected_attribute.val()][query_input_data.id] = query_input_data.text
  