anchor.diff:        container.before content.replace(regexp, new_id)
         prev_container = container.prev()
   
  -      @init_select2(prev_container)
  +      if Select2?
  +        @init_select2(prev_container)
   
         if $.ransack.button_group_select?
           @init_button_group_select(prev_container)
  
positive.code: 
        # Store initial predicates and set up Select2 on select lists in .filters
        containers = el.find('.filters')
        @init_select2(containers)
        @store_initial_predicates(containers)
  
        if $.ransack.button_group_select?
  
negative.code:     # Dsiables predicate choices and sets it to 'eq'
      force_eq_predicate: (base_id) ->
        predicate_select  = @element.find("select##{base_id}p")
        # Clear predicates, and set 'eq' predicate
        predicate_select.find('option').each (i, o) -> $(o).remove()
        predicate_select.append $('<option selected="selected" value="eq">is</option>')
  
        if Select2?
          predicate_select2 = @element.find("#s2id_#{base_id}p")
          # Disable predicate Select2
          predicate_select2.select2('disable')
          predicate_select2.select2('val', 'eq')
  
      # Attempts to find a predicate translation for the specific column type,
      # or returns the default label.
  