Last active
August 29, 2015 14:02
-
-
Save James1x0/89c880bc269639839e63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from "ember-data"; | |
var attribute = DS.attr; | |
export default DS.Model.extend({ | |
name: attribute({ | |
first: attribute('string'), | |
last: attribute('string') | |
}), | |
time_stamp: attribute('string', { | |
defaultValue: function () { | |
return moment().format("YYYY/MM/DD HH:mm:ss"); | |
} | |
}) | |
}); |
briangonzalez
commented
Jun 23, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment