class Ransack::Nodes::Condition

def format_predicate(attribute)

def format_predicate(attribute)
  arel_pred = arel_predicate_for_attribute(attribute)
  arel_values = formatted_values_for_attribute(attribute)
  predicate = attr_value_for_attribute(attribute).public_send(arel_pred, arel_values)
  if in_predicate?(predicate)
    predicate.right = predicate.right.map do |pr|
      casted_array?(pr) ? format_values_for(pr) : pr
    end
  end
  predicate
end