# File lib/criteria/sql.rb, line 70 def _parse_val(val, type) return val if type == String return val.to_i if type == Integer return true if type == TrueClass return false if type == FalseClass return val.to_f if type == Float return Time.at(val.to_i) if type == Time return val end