Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzarcon/83ad59a6d4b09b8b4603 to your computer and use it in GitHub Desktop.
Save zzarcon/83ad59a6d4b09b8b4603 to your computer and use it in GitHub Desktop.
GM Cups
App.Tournament = DS.Model;
App.LocalCup = App.Tournament.extend();
App.Championship = DS.Model.extend({
type: DS.attr('string'), //champions-cup, challengue-cup, kerad-cup
tournament: DS.belongsTo('tournament'),
leagues: DS.hasMany('league')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment