MAINT: Upgrade to ember 2.16 LTS ()

This commit is contained in:
Matthew Ryan Dillon 2018-01-25 06:51:47 -07:00 committed by GitHub
parent 39f4789a61
commit eb4537afb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 129 additions and 151 deletions
app/models

View file

@ -1,7 +1,7 @@
import Ember from 'ember';
import { mapBy } from '@ember/object/computed';
import { computed } from '@ember/object';
import DS from 'ember-data';
const { computed } = Ember;
const { Model, attr, belongsTo, hasMany } = DS;
export default Model.extend({
@ -24,11 +24,11 @@ export default Model.extend({
envMeasurements: hasMany('collection-measurement'),
// computed
species: computed.mapBy('collectionSpecies', 'species'),
species: mapBy('collectionSpecies', 'species'),
speciesNames: computed.mapBy('species', 'commonName'),
speciesNames: mapBy('species', 'commonName'),
counts: computed.mapBy('collectionSpecies', 'count'),
counts: mapBy('collectionSpecies', 'count'),
speciesAndCounts: computed('speciesNames', 'counts', function() {
const speciesNames = this.get('speciesNames');