Last active
December 15, 2015 14:59
-
-
Save iHiD/5278857 to your computer and use it in GitHub Desktop.
Ember Stuff.
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
Meducation.MediaFile.FIXTURES = [ | |
{ | |
id: 8 | |
title: 'Abdominal Ultrasound Tutorial' | |
description: "A tutorial about how to read an abdominal ultrasound video. Produced to give medical students just a better idea of what to expect." | |
image_src: "https://d589j1w8ayj7e.cloudfront.net/attachments/media_files/previews/8.jpg" | |
user: 1 | |
high_quality_url: "http://www.meducation.net/media_files/8/high_quality" | |
media_type_id: 3 | |
} | |
{ | |
id: 170, | |
title: 'Stroke Summary', | |
description: 'Tutorial summarising stroke definition, presentation and pathophysiology, and management.', | |
image_src: "https://d589j1w8ayj7e.cloudfront.net/attachments/media_files/previews/170.jpg" | |
user: 2 | |
media_type_id: 2 | |
} | |
] | |
Meducation.User.FIXTURES = [ | |
{ | |
id: 1 | |
name: "Dr Alastair Buick" | |
media_files: [170] | |
} | |
{ | |
id: 2 | |
name: "Jeremy Walker" | |
media_files: [8] | |
} | |
] |
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
Meducation.User = DS.Model.extend | |
name: DS.attr('string') | |
media_files: DS.hasMany("Meducation.MediaFile") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment