class Ransack::Nodes::Value
def cast(type)
def cast(type) case type when :date cast_to_date(value) when :datetime, :timestamp, :time, :timestamptz cast_to_time(value) when :boolean cast_to_boolean(value) when :integer cast_to_integer(value) when :float cast_to_float(value) when :decimal cast_to_decimal(value) when :money cast_to_money(value) else cast_to_string(value) end end