class Ransack::Nodes::Value

def cast_to_boolean(val)

def cast_to_boolean(val)
  if Constants::TRUE_VALUES.include?(val)
    true
  elsif Constants::FALSE_VALUES.include?(val)
    false
  else
    nil
  end
end