anchor.diff:        selected_attribute = attribute_select.find('option:selected')
   
         value_select2_id = "#s2id_#{base_id}v_0_value"
  +      value_select2 = @element.find(value_select2_id)
         value_select2_multi_id = "#s2id_#{base_id}v_0_value_multi"
  -      value_select2 = @element.find(value_select2_id)
         value_select2_multi = @element.find(value_select2_multi_id)
   
         # We need to use a dummy input to handle multiple terms
  
positive.code:         initSelection: (element, callback) ->
            data = []
            unless element.val().trim() == ""
              $(element.val().split(",")).each ->
                label = Ransack.value_field_labels[selected_attribute_val]?[this]
                if label
                  data.push {id: this, text: label}
                else
                  data.push {id: this, text: this}
            if data.length
              callback(multiple and data or data[0])
            else
  
negative.code:       query_input = $("input##{base_id}v_0_value")
        multi_id = query_input.attr('id') + '_multi'
        multi_input = @element.find("##{multi_id}")
        value_select2_id = "#s2id_#{base_id}v_0_value"
        value_select2 = @element.find(value_select2_id)
  
        # Initialize datepicker if column is date/datetime/time
        $.proxy(@init_datetimepicker, this)(base_id)
  
        # Destroy any query select2 inputs on attribute change and clear input
        if value_select2.length
          query_input.val('').select2('destroy')
  
        # Destroy any multi-inputs on attribute change and clear input
        if multi_input.length
          query_input.val('')
          @destroy_multi_input(multi_input, selected_attribute.val())
  
        # Handle association columns with AJAX autocomplete
        if selected_attribute.data('ajax-url') and Select2?
          @set_option_predicates(base_id, available, column_type)
  
        # Handle columns with options detected from validates :inclusion
        else if selected_attribute.data('select-options') and Select2?
          @set_option_predicates(base_id, available, column_type)
  
        # Handle regular columns
        else
  