This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/models/genus.js
2015-01-22 09:08:56 -09:00

13 lines
340 B
JavaScript

import DS from 'ember-data';
import Ember from 'ember';
var inflector = Ember.Inflector.inflector;
inflector.irregular('genus', 'genera');
export default DS.Model.extend({
genusName: DS.attr(),
species: DS.hasMany('species', {async: true}),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),
deletedAt: DS.attr('date')
});