How to use the ember-cli-mirage.Model.extend function in ember-cli-mirage

To help you get started, we’ve selected a few ember-cli-mirage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hummingbird-me / hummingbird-client / mirage / models / genre.js View on Github external
import { Model } from 'ember-cli-mirage';

export default Model.extend();
github code-corps / code-corps-ember / mirage / models / user-category.js View on Github external
import { Model, belongsTo } from 'ember-cli-mirage';

export default Model.extend({
  category: belongsTo(),
  user: belongsTo()
});
github oliverbarnes / old-participate-client / mirage / models / support.js View on Github external
import { Model, belongsTo } from 'ember-cli-mirage';

export default Model.extend({
  proposal: belongsTo(),
  author: belongsTo('participant')
});
github code-corps / code-corps-ember / mirage / models / user-role.js View on Github external
import { Model, belongsTo } from 'ember-cli-mirage';

export default Model.extend({
  role: belongsTo(),
  user: belongsTo()
});
github code-corps / code-corps-ember / mirage / models / task-user-mention.js View on Github external
import { Model, belongsTo } from 'ember-cli-mirage';

export default Model.extend({
  task: belongsTo(),
  user: belongsTo()
});
github code-corps / code-corps-ember / mirage / models / project.js View on Github external
import { Model, belongsTo, hasMany } from 'ember-cli-mirage';

export default Model.extend({
  donationGoals: hasMany('donation-goal'),
  githubRepos: hasMany('github-repo'),
  organization: belongsTo(),
  projectCategories: hasMany('project-category'),
  projectSkills: hasMany('project-skill'),
  projectUsers: hasMany('project-user'),
  stripeConnectPlan: belongsTo('stripe-connect-plan'),
  taskLists: hasMany('task-list'),
  tasks: hasMany()
});
github linkedin / WhereHows / wherehows-web / mirage / models / dataset-view.ts View on Github external
import { Model } from 'ember-cli-mirage';

export default Model.extend({});
github linkedin / WhereHows / wherehows-web / mirage / models / property.ts View on Github external
import { Model } from 'ember-cli-mirage';

export default Model.extend({});
github travis-ci / travis-web / mirage / models / build.js View on Github external
import { Model, belongsTo, hasMany } from 'ember-cli-mirage';

export default Model.extend({
  repository: belongsTo('repository'),
  commit: belongsTo('commit', { inverseOf: 'build' }),
  branch: belongsTo('branch', { inverseOf: 'builds' }),
  jobs: hasMany('job'),
  stages: hasMany('stage'),
});
github code-corps / code-corps-ember / mirage / models / github-repo.js View on Github external
import { Model, belongsTo } from 'ember-cli-mirage';

export default Model.extend({
  githubAppInstallation: belongsTo('github-app-installation'),
  project: belongsTo('project')
});