Last active
August 29, 2015 14:00
-
-
Save lessless/8c834c085b9c832be8fd to your computer and use it in GitHub Desktop.
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
Testcase.AlbumTracksRoute = Ember.Route.extend | |
model: -> | |
@modelFor('album').get('tracks') |
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
Testcase.Track = DS.Model.extend | |
title: DS.attr 'string' | |
genre: DS.attr 'string' | |
releaseDate: DS.attr 'string' | |
file: DS.attr 'string' | |
cover: DS.attr 'string' | |
album: DS.belongsTo 'album' | |
Testcase.Album = DS.Model.extend | |
title: DS.attr 'string' | |
releaseDate: DS.attr 'date' | |
cover: DS.attr 'string' | |
tracks: DS.hasMany 'track' |
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
Testcase.Router.map ()-> | |
@resource 'albums', -> | |
@route('new') | |
@route('edit') | |
@resource 'album', {path: ':album_id'}, -> | |
@resource 'tracks' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment