class ActiveLdap::Schema::Syntaxes::Boolean
def normalize_value(value)
def normalize_value(value) case value when true, "1" "TRUE" when false, "0" "FALSE" else value end end
def type_cast(value)
def type_cast(value) case value when "TRUE" true when "FALSE" false else value end end
def validate_normalized_value(value, original_value)
def validate_normalized_value(value, original_value) if %w(TRUE FALSE).include?(value) nil else _("%s should be TRUE or FALSE") % original_value.inspect end end