Created
May 17, 2015 04:55
-
-
Save jeznag/b3e54a602a6689856eae to your computer and use it in GitHub Desktop.
Person model
This file contains 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'; | |
import Ember from 'ember'; | |
var inflector = Ember.Inflector.inflector; | |
inflector.irregular('person', 'people'); | |
inflector.singular(/person/, 'person'); | |
let Person = DS.Model.extend({ | |
fullName: DS.attr( 'string' ), | |
description: DS.attr( 'string' ), | |
photoURL: DS.attr( 'string' ), | |
location: DS.attr( 'string' ) | |
}); | |
export default Person; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment