Skip to content

Instantly share code, notes, and snippets.

@jeznag
Created May 17, 2015 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeznag/b3e54a602a6689856eae to your computer and use it in GitHub Desktop.
Save jeznag/b3e54a602a6689856eae to your computer and use it in GitHub Desktop.
Person model
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