Skip to content

Instantly share code, notes, and snippets.

@toranb
Created April 11, 2014 04:17
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 toranb/10440620 to your computer and use it in GitHub Desktop.
Save toranb/10440620 to your computer and use it in GitHub Desktop.
step4 person.js file
var Person = Ember.Object.extend();
Person.reopenClass({
people: [],
find: function() {
var first = Person.create({name: 'toran'});
var last = Person.create({name: 'matt'});
this.people.pushObject(first);
this.people.pushObject(last);
return this.people;
}
});
export default Person;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment