Created
September 17, 2014 05:06
-
-
Save gone/a26bbea782f88282c64c 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
import DS from 'ember-data'; | |
import FIXTURES from '../fixtures/condition'; | |
var Condition = DS.Model.extend({ | |
commonName: DS.attr("string"), | |
scientificName: DS.attr("string"), | |
description: DS.attr("string"), | |
percentMatch: DS.attr("integer"), | |
commonality: DS.attr("string"), | |
urgency: DS.attr("string"), | |
facilityTypeConditions: DS.hasMany("facilityTypeCondition"), | |
facilityTypeReccomendations: function(){ | |
this.get("facilityTypeConditions").sort("order").getProperty("facilityType") | |
}.property("facilityTypeConditions.@each") | |
}); | |
Condition.reopenClass({ | |
FIXTURES: FIXTURES | |
}); | |
export default Condition; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment