core/server/models/base/index.js
function fixBools(attrs) {
        var self = this;
        _.each(attrs, function each(value, key) {
            if (schema.tables[self.tableName].hasOwnProperty(key)
                && schema.tables[self.tableName][key].type === 'bool') {
                attrs[key] = value ? true : false;
            }
        });

        return attrs;
    }
function fixBools(attrs) {
        var self = this;
        _.each(attrs, function each(value, key) {
            if (schema.tables[self.tableName].hasOwnProperty(key)
                && schema.tables[self.tableName][key].type === 'bool') {
                attrs[key] = value ? true : false;
            }
        });

        return attrs;
    }
function fixBools ( attrs ) { var self = this ; _ . each ( attrs , function each ( value , key ) { if ( schema . tables [ self . tableName ] . hasOwnProperty ( key ) && schema . tables [ self . tableName ] [ key ] . type === 'bool' ) { attrs [ key ] = value ? true : false ; } } ) ; return attrs ; }
Convert integers to real booleans
Convert integers to real booleans