class Ransack::Nodes::Condition

def formatted_values_for_attribute(attr)

Experimental RBS support (using type sampling data from the type_fusion project).

def formatted_values_for_attribute: (Ransack::Nodes::Attribute attr) -> String

This signature was generated using 1 sample from 1 application.

def formatted_values_for_attribute(attr)
  formatted = casted_values_for_attribute(attr).map do |val|
    if attr.ransacker && attr.ransacker.formatter
      val = attr.ransacker.formatter.call(val)
    end
    val = predicate.format(val)
    val
  end
  if predicate.wants_array
    formatted
  else
    formatted.first
  end
end