Last active
August 29, 2015 14:01
-
-
Save HyShai/f5edc0e7fc1d2caf0be2 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
//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; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sgfdfsgdfgdf