Skip to content

Instantly share code, notes, and snippets.

@HyShai
Last active August 29, 2015 14:01
Show Gist options
  • Save HyShai/f5edc0e7fc1d2caf0be2 to your computer and use it in GitHub Desktop.
Save HyShai/f5edc0e7fc1d2caf0be2 to your computer and use it in GitHub Desktop.
//PhotoIndex Route
export default Ember.Route.extend({
model:function() {
var store = this.get('store');
return store.find('photo', 1);
}
});
//PhotosAdapter
export default Ember.FixtureAdapter.extend();
//PhotoModel
var Photo = Em.Model.extend({
name: Em.attr( ),
url: Em.attr()
});
//reopenClass here and set the fixtures property
export default Photo;
@HyShai
Copy link
Author

HyShai commented Aug 1, 2014

sgfdfsgdfgdf

@HyShai
Copy link
Author

HyShai commented Aug 1, 2014

sdfdsfscvxc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment