How to clone/copy the model to createRecord in the controller


Please take a look and hopefully answer my beginners question.


When I change the createRecord to

var newPost = this.get('store').createRecord('post');

and add {defaultValue: ""} to all Model records

import DS from "ember-data";

var Post = DS.Model.extend({
	title: DS.attr('string', {defaultValue: ""}),
	author: DS.attr('string', {defaultValue: ""}),
	date: DS.attr('date'),
	excerpt: DS.attr('string', {defaultValue: ""}),
	body: DS.attr('string', {defaultValue: ""})

export default Post; 

My example works. Is this the way to go or can this be changed globally?