ccdb-web/app/transforms/string-null-to-empty.js

13 lines
215 B
JavaScript

import DS from 'ember-data';
const { Transform } = DS;
export default Transform.extend({
deserialize(serialized) {
return serialized || '';
},
serialize(deserialized) {
return deserialized;
}
});